Ejemplo n.º 1
0
        public void GivenRouteAll_WhenModuleStops_ShouldNotRoute()
        {
            ModuleA.Entities.PlatformItems.Add(new PlatformItem());
            ModuleBusManager.ForcePath(ModuleA, ModuleB, 0, 0);

            ModuleB.Stop();

            ModuleA.TestCurrentAllPortRoutings.Should().HaveCount(0, "ModuleA must not route items because target is in OFF state now");
        }
Ejemplo n.º 2
0
        public void GivenRouteAll_WhenDestinationStops_ShouldStopRouting()
        {
            var item = new PlatformItem();

            ModuleA.Entities.PlatformItems.Add(item);
            ModuleBusManager.ForcePath(ModuleA, ModuleB, 0, 0);

            ModuleB.Stop();

            ModuleA.TestCurrentAllPortRoutings.Should().HaveCount(0, "ModuleA must not route items because target is full now");
        }