Пример #1
0
 public void Execute_gets_invoice()
 {
     _command.Execute(invoiceId);
     _mocker.GetMock <IDatabase>()
     .Verify(p => p.GetInvoice(invoiceId)
             , Times.Once);
 }
Пример #2
0
 public void Executes_should_print(string line)
 {
     _invoicePrinter.Execute(invoiceId);
     _mocker.GetMock <IPrinter>()
     .Verify(p => p.WriteLine(line)
             , Times.Once);
 }
Пример #3
0
 public void execute_should_call_getinvoice()
 {
     _command.Execute(_invoiceId);
     _mocker.GetMock <IDatabase>()
     .Verify(p => p.GetInvoice(_invoiceId)
             , Times.Once);
 }
Пример #4
0
 public void Executes_should_print_invoice_number()
 {
     _invoicePrinter.Execute(invoiceId);
     _printer.Verify(p => p.WriteLine("Invoice ID: 1")
                     , Times.Once);
 }