public async Task NotReturnNull_If_OrdersArePresent()
        {
            var request = new GetMyOrders("SomeUserName");

            var handler = new GetMyOrdersHandler(_mockOrderRepository.Object);

            var result = await handler.Handle(request, CancellationToken.None);

            Assert.NotNull(result);
        }
Exemple #2
0
        public async Task NotReturnNull_If_OrdersArePresent()
        {
            var request = new GetMyOrders("SomeUserName");

            var handler = new GetMyOrdersHandler(new CatalogContext(new DbContextOptions <CatalogContext>()));

            var result = await handler.Handle(request, CancellationToken.None);

            Assert.NotNull(result);
        }