2021-09-29 20:35:39 +00:00
|
|
|
package domain
|
|
|
|
|
|
|
|
import "testing"
|
|
|
|
|
|
|
|
type Client struct {
|
2021-10-05 06:54:36 +00:00
|
|
|
RedirectURI []string
|
2021-09-29 20:35:39 +00:00
|
|
|
ID string
|
|
|
|
Logo string
|
|
|
|
Name string
|
|
|
|
URL string
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewClient() *Client {
|
|
|
|
c := new(Client)
|
|
|
|
c.RedirectURI = make([]string, 0)
|
|
|
|
|
|
|
|
return c
|
|
|
|
}
|
|
|
|
|
|
|
|
func TestClient(tb testing.TB) *Client {
|
|
|
|
tb.Helper()
|
|
|
|
|
|
|
|
return &Client{
|
2021-10-04 19:46:54 +00:00
|
|
|
ID: "https://app.example.com/",
|
2021-09-29 20:35:39 +00:00
|
|
|
Name: "Example App",
|
2021-10-04 19:46:54 +00:00
|
|
|
Logo: "https://app.example.com/logo.png",
|
|
|
|
URL: "https://app.example.com/",
|
2021-09-29 20:35:39 +00:00
|
|
|
RedirectURI: []string{
|
2021-10-05 06:54:36 +00:00
|
|
|
"https://app.example.net/redirect",
|
2021-10-04 19:46:54 +00:00
|
|
|
"https://app.example.com/redirect",
|
2021-09-29 20:35:39 +00:00
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|