示例#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");
        }
示例#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");
        }