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