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