public async Task PutCategoryExpenses_ShouldReturnBadRequestWhenObjectIsNull()
        {
            // Arrange
            expectedIdOfCategoryExpense = 1;
            var controller = new CategoryExpenseController(null);

            // Act
            var objectResult = await controller.Edit(expectedIdOfCategoryExpense, null) as ObjectResult;

            // Assert
            Assert.AreEqual(400, objectResult.StatusCode, "CategoryExpense StatusCode400 does not works. Method put. Object cannot be empty");
        }
        public async Task PutCategoryExpenses_ShouldReturnStatusCode204WhenObjectIsUpdated()
        {
            // Arrange
            mockCategoryExpenseService.Setup(repo => repo.EditCategoryExpense(It.IsAny <Models.CategoryExpense>(), It.IsAny <int>())).Returns(Task.FromResult(true));
            var controller = new CategoryExpenseController(mockCategoryExpenseService.Object);

            expectedIdOfCategoryExpense = 1;

            // Act
            var noContentResult = await controller.Edit(expectedIdOfCategoryExpense, categoryExpenseModelObj) as NoContentResult;

            // Assert
            Assert.AreEqual(204, noContentResult.StatusCode, "CategoryExpense method put. Object was not updated.");
        }