public void SetPrice_SingleHoseAndSomeValue_SetsHosePriceWithSpecifiedValue() { _mockIO.Setup(c => c.SendAndReceive(CompanyCommands.SetPrice, "04", "3784")).Verifiable(); var forecourt = new Company(_mockIO.Object); forecourt.SetPrice(new Hose(1), 3.784); forecourt.Dispose(); _mockIO.Verify(c => c.SendAndReceive(CompanyCommands.SetPrice, "04", "3784")); }