Beispiel #1
0
        public async Task ExpenseRepository_GetExpense_Call_GetResults_Test()
        {
            var context   = new MyCompanyContext();
            int expenseId = context.Expenses.FirstOrDefault().ExpenseId;

            var result = await target.GetAsync(expenseId);

            Assert.IsNotNull(result);
            Assert.IsTrue(result.ExpenseId == expenseId);
        }