public async Task Should_GetAll()
        {
            // Act
            var response = await _appService.GetAllPurchaseOrderAsync(new PurchaseOrderRequestAllDto());

            // Assert
            Assert.False(LocalNotification.HasNotification());
            Assert.False(response.HasNext);
            Assert.Equal(4, response.Items.Count);
        }
Ejemplo n.º 2
0
        public async Task <IActionResult> GetAll([FromQuery] PurchaseOrderRequestAllDto requestAll)
        {
            var response = await _appService.GetAllPurchaseOrderAsync(requestAll);

            return(CreateResponseOnGetAll(response, name));
        }