public IQueryable <ExpensesModel> Get() { var result = _expenseQueryProcessor.Get(); var model = _autoMapper.Map <Expense, ExpensesModel>(result); return(model); }
public void GetShouldReturnAll() { _expenseList.Add(new Expense { UserId = _currentUser.Id }); var result = _query.Get().ToList(); result.Count.Should().Be(1); }