public async Task before_each_and_after_each_is_called() { using (var host = SystemUnderTest .ForStartup <Startup>() .BeforeEach(c => { BeforeContext = c; }) .AfterEach(c => AfterContext = c)) { BeforeContext = AfterContext = null; await host.Scenario(_ => { _.Get.Url("/api/values"); }); AfterContext.ShouldNotBeNull(); BeforeContext.ShouldNotBeNull(); } }
public override void After(AfterContext context) { //throw new NotImplementedException(); }