protected SutAppBase() { Profiler = new ConsoleProfiler(25); PagesResolver = new PagesResolver <TApp>(this as TApp); Factory = new AppFactory <TStartUp>(); Client = new Lazy <TestHttpClient>(CreateClient); }
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(); } }