Example #1
0
        public void EstablishContext()
        {
            this.Log = Substitute.For <ILog>();
            this.InvoiceProcessingService = Substitute.For <IInvoiceProcessingService>();

            this.Sut = new InvoiceCreatedHandler(
                this.Log,
                this.InvoiceProcessingService);
        }
Example #2
0
 public InvoiceCreatedHandler(ILog log, IInvoiceProcessingService invoiceProcessingService)
 {
     this.log = log;
     this.invoiceProcessingService = invoiceProcessingService;
 }