Пример #1
0
        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);
        }
Пример #2
0
 public static TryOption <Set <B> > Sequence <A, B>(this Set <A> ta, Func <A, TryOption <B> > f) =>
 ta.Map(f).Sequence();
Пример #3
0
 public static Task <Set <B> > Sequence <A, B>(this Set <A> ta, Func <A, Task <B> > f) =>
 ta.Map(f).Sequence();