public void UnloadAndLoadLocationsAreDifferent() { // Arrange var sut = new TransportLegsAreConnectedSpecification(); var transportLegs = new[] { new TransportLeg(TransportLegId.New, Locations.NewYork, Locations.Dallas, 1.January(2000), 2.January(2000), A <VoyageId>(), CarrierMovementId.New), new TransportLeg(TransportLegId.New, Locations.Shanghai, Locations.Chicago, 3.January(2000), 4.January(2000), A <VoyageId>(), CarrierMovementId.New), }; // Act var isSatisfiedBy = sut.IsSatisfiedBy(transportLegs); var why = sut.WhyIsNotSatisfiedBy(transportLegs); // Assert isSatisfiedBy.Should().BeFalse(); why.Should().HaveCount(1); }
public void UnloadAndLoadLocationsAreDifferent() { // Arrange var sut = new TransportLegsAreConnectedSpecification(); var transportLegs = new[] { new TransportLeg(TransportLegId.New, Locations.NewYork, Locations.Dallas, 1.January(2000), 2.January(2000), A<VoyageId>(), CarrierMovementId.New), new TransportLeg(TransportLegId.New, Locations.Shanghai, Locations.Chicago, 3.January(2000), 4.January(2000), A<VoyageId>(), CarrierMovementId.New), }; // Act var isSatisfiedBy = sut.IsSatisfiedBy(transportLegs); var why = sut.WhyIsNotSatisfiedBy(transportLegs); // Assert isSatisfiedBy.Should().BeFalse(); why.Should().HaveCount(1); }