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()); }); }
public void calls_subsystem_start_on_each() { var system = new FakeSerenitySystem(); system.SubSystems.Each(x => { x.AssertWasCalled(o => o.Start()); }); }