public async Task ExpenseTravelController_Update_Test()
        {
            bool called = false;
            var  expenseTravelRepository = new Data.Repositories.Fakes.StubIExpenseTravelRepository();

            var updateExpenseTravel = new ExpenseTravel()
            {
                ExpenseId = 1,
                Distance  = 10
            };

            expenseTravelRepository.UpdateAsyncExpenseTravel = (expenseTravel) =>
            {
                Assert.IsTrue(updateExpenseTravel.ExpenseId == expenseTravel.ExpenseId);
                called = true;
                return(Task.FromResult(string.Empty));
            };

            var target = new ExpenseTravelsController(expenseTravelRepository);
            await target.Update(updateExpenseTravel);

            Assert.IsTrue(called);
        }
 public async Task ExpenseTravelController_Update_Exception_Test()
 {
     var expenseTravelRepository = new Data.Repositories.Fakes.StubIExpenseTravelRepository();
     var target = new ExpenseTravelsController(expenseTravelRepository);
     await target.Update(null);
 }