Exemple #1
0
        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();
            }
        }
Exemple #2
0
 public override void After(AfterContext context)
 {
     //throw new NotImplementedException();
 }