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); }
public void TestInitialize() { CreateDefaultPayments(); _handler = new GetPaymentsQueryHandler(_context); }