public void ThenTheProductIsAddedToThePackingSlip() { _generatePackingSlipForPhysicalProduct.Apply(MockOrder.Object); MockOrder.Verify(m => m.SetPackingSlip(It.Is <PackingSlip>(ps => PackingSlipProductListIsExpected(ps))), Times.Once); }
public void ThenANewPackingSlipIsGeneratedAndAddedToTheOrder() { _generatePackingSlipForPhysicalProduct.Apply(MockOrder.Object); MockOrder.Verify(m => m.SetPackingSlip(It.Is <PackingSlip>(ps => PackingSlipDepartmentIsExpected(ps))), Times.Once); }