public void ThenGetUmbrellaCallReflectsTheChanges() { var baseurl = TestSetup.Config.datahubUmbrellaApi.baseurl; var api = new DefaultApi(baseurl); var imisId = new MainPage(TestSetup.Driver).GetAccountId(); var res = api.GetUmbrellaWithHttpInfo(imisId); var persistedIds = ((UmbrellaDefinitionResponse)res.Content) .Children .Map((child) => child.ChildAccountID); var uiIds = new AdminCompanySettingsUmbrella(TestSetup.Driver) .GetDefinitionChildren(); Set.createRange(persistedIds) .Equals(Set.createRange(uiIds)) .ShouldBe(true); }
public static TryOption <Set <B> > Sequence <A, B>(this Set <A> ta, Func <A, TryOption <B> > f) => ta.Map(f).Sequence();
public static Task <Set <B> > Sequence <A, B>(this Set <A> ta, Func <A, Task <B> > f) => ta.Map(f).Sequence();