public async Task ShouldGetUrl() { var clientUrl = new AppClientUrl(new FakeAppClientDomain()).WithApp("Fake", "Current"); var url = await clientUrl.WithGroup("Group1").Value("Action1", ""); Assert.That(url, Is.EqualTo("https://webapps.example.com/Fake/Current/Group1/Action1")); }
protected AppClientGroup(IHttpClientFactory httpClientFactory, IXtiToken xtiToken, AppClientUrl clientUrl, string name) { this.httpClientFactory = httpClientFactory; this.xtiToken = xtiToken; this.clientUrl = clientUrl.WithGroup(name); }