public given_no_payment() { this.contextMock = new Mock <IDataContext <ThirdPartyProcessorPayment> >(); var commandBusMOk = new Mock <ICommandBus>(); this.handler = new ThirdPartyProcessorPaymentCommandHandler(() => this.contextMock.Object, commandBusMOk.Object); }
public given_initiated_payment() { this.contextMock = new Mock <IDataContext <ThirdPartyProcessorPayment> >(); this.payment = new ThirdPartyProcessorPayment(Guid.NewGuid(), Guid.NewGuid(), "payment", 100, new ThidPartyProcessorPaymentItem[0]); this.handler = new ThirdPartyProcessorPaymentCommandHandler(() => this.contextMock.Object); contextMock.Setup(x => x.Find(payment.Id)).Returns(payment); }
public given_initiated_payment() { this.contextMock = new Mock<IDataContext<ThirdPartyProcessorPayment>>(); this.payment = new ThirdPartyProcessorPayment(Guid.NewGuid(), Guid.NewGuid(), "payment", 100, new ThidPartyProcessorPaymentItem[0]); this.handler = new ThirdPartyProcessorPaymentCommandHandler(() => this.contextMock.Object); contextMock.Setup(x => x.Find(payment.Id)).Returns(payment); }
public given_no_payment() { this.contextMock = new Mock<IDataContext<ThirdPartyProcessorPayment>>(); var commandBusMOk = new Mock<ICommandBus>(); this.handler = new ThirdPartyProcessorPaymentCommandHandler(() => this.contextMock.Object, commandBusMOk.Object); }
public given_no_payment() { contextMock = new Mock <IDataContext <ThirdPartyProcessorPayment> >(); handler = new ThirdPartyProcessorPaymentCommandHandler(() => contextMock.Object); }