Ejemplo n.º 1
0
        public void smoke_test_the_on_start_up()
        {
            var system = new FakeSerenitySystem();

            system.CreateContext().ShouldNotBeNull();
            system.TheContainer.ShouldNotBeNull();
        }
Ejemplo n.º 2
0
        public void calls_syssystem_stop_on_each_when_disposing()
        {
            var system = new FakeSerenitySystem();

            system.CreateContext();

            system.Application.ShouldNotBeNull();

            system.Dispose();

            system.SubSystems.Each(x => { x.AssertWasCalled(o => o.Stop()); });
        }