auth/internal/domain/client.go

34 lines
578 B
Go
Raw Normal View History

package domain
import "testing"
type Client struct {
RedirectURI []string
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/",
Name: "Example App",
2021-10-04 19:46:54 +00:00
Logo: "https://app.example.com/logo.png",
URL: "https://app.example.com/",
RedirectURI: []string{
"https://app.example.net/redirect",
2021-10-04 19:46:54 +00:00
"https://app.example.com/redirect",
},
}
}