public void Test_GetExpensesByUserId_Fail()
        {
            _expenseRepository.Setup(e => e.GetAllExpensesByUserId(It.IsAny <long>()));

            var expenseServices = new BudgetExpensesServices(_expenseRepository.Object);

            Assert.ThrowsAsync <Exception>(() => expenseServices.GetExpensesByUserId(0));

            _expenseRepository.Verify(e => e.GetAllExpensesByUserId(It.IsAny <long>()), Times.Once);
        }
        public async Task Test_GetExpensesByUserId_Success()
        {
            _expenseRepository.Setup(e => e.GetAllExpensesByUserId(It.IsAny <long>()))
            .ReturnsAsync(new List <BudgetExpenses>());

            var expenseServices = new BudgetExpensesServices(_expenseRepository.Object);

            await expenseServices.GetExpensesByUserId(1);

            _expenseRepository.Verify(e => e.GetAllExpensesByUserId(It.IsAny <long>()), Times.Once);
        }