Exemple #1
0
 protected SutAppBase()
 {
     Profiler      = new ConsoleProfiler(25);
     PagesResolver = new PagesResolver <TApp>(this as TApp);
     Factory       = new AppFactory <TStartUp>();
     Client        = new Lazy <TestHttpClient>(CreateClient);
 }
Exemple #2
0
        private async Task UpdateCurrentPageFromMessage(HttpResponseMessage message)
        {
            using (Profiler.ProfileTest(nameof(UpdateCurrentPageFromMessage)))
            {
                Assert.IsTrue(message.IsSuccessStatusCode, $"Server returned:{message.StatusCode}");
                CurrentPage = await PagesResolver.ResolvePage(message);

                OnNewPageLoaded();
            }
        }