public async Task PostCategoryExpenses_ShouldNotCreateCategoryExpense()
        {
            // Arrange
            mockCategoryExpenseService.Setup(repo => repo.AddCategoryExpense(It.IsAny <List <Models.CategoryExpense> >())).Returns(Task.FromResult(false));
            var controller = new CategoryExpenseController(mockCategoryExpenseService.Object);

            // Act
            var objectResult = await controller.Post(categoryExpenseListObj) as ObjectResult;

            // Assert
            Assert.AreEqual(500, objectResult.StatusCode, "CategoryExpense StatusCode500 does not works. Method post");
        }
        public async Task PostCategoryExpenses_ShouldReturnBadRequestObjectIsNull()
        {
            // Arrange
            var categoryExpenseList = new List <Models.CategoryExpense>();
            var controller          = new CategoryExpenseController(null);

            // Act
            var badRequestResult = await controller.Post(categoryExpenseList) as BadRequestResult;

            // Assert
            Assert.AreEqual(400, badRequestResult.StatusCode, "Badrequest does not works. Method post");
        }