Ejemplo n.º 1
0
        public async Task GetStatusAmountMoneyAsync_Most_Return_OkObjectResult()
        {
            mockPackageQueryHandler.Setup(x => x.GetStatusAmountMoneyAsync(1)).ReturnsAsync(100);

            var controller = new PackagesController(mockPackageQueryHandler.Object, mockPackageHandler.Object);

            var result = await controller.GetStatusAmountMoneyAsync(1) as OkObjectResult;

            Assert.NotNull(result);
            Assert.NotNull(result.Value);
            Assert.Equal(200, result.StatusCode);

            mockPackageQueryHandler.VerifyAll();
        }