public void SetPrice_SingleHoseAndSomeValue_SetsHosePriceWithSpecifiedValue() { var status = string.Empty; _mockIO.Setup(c => c.SendAndReceive(WayneCommands.SetPrice, "0113784", ref status)) .Verifiable(); var forecourt = new Wayne(_mockIO.Object); forecourt.SetPrice(new Hose(1), 3.784); forecourt.Dispose(); _mockIO.Verify(c => c.SendAndReceive(WayneCommands.SetPrice, "0113784", ref status)); }