Esempio n. 1
0
        public void Handle_WhenCalled_ShouldReturnPaymentsForCustomer()
        {
            var sut = new GetPaymentsQueryHandler(_context, CurrentUser, _mediator.Object);

            var result = sut.Handle(new GetPaymentsQuery(), CancellationToken.None).Result;

            Assert.IsNotEmpty(result.Payments);
        }
Esempio n. 2
0
 public void TestInitialize()
 {
     CreateDefaultPayments();
     _handler = new GetPaymentsQueryHandler(_context);
 }