public void Execute_gets_invoice() { _command.Execute(invoiceId); _mocker.GetMock <IDatabase>() .Verify(p => p.GetInvoice(invoiceId) , Times.Once); }
public void Executes_should_print(string line) { _invoicePrinter.Execute(invoiceId); _mocker.GetMock <IPrinter>() .Verify(p => p.WriteLine(line) , Times.Once); }
public void execute_should_call_getinvoice() { _command.Execute(_invoiceId); _mocker.GetMock <IDatabase>() .Verify(p => p.GetInvoice(_invoiceId) , Times.Once); }
public void Executes_should_print_invoice_number() { _invoicePrinter.Execute(invoiceId); _printer.Verify(p => p.WriteLine("Invoice ID: 1") , Times.Once); }