public void GetAllTest() { var query = from m in opportunityRepository.GetAll() select m; var list = query.ToList(); if (list.Count > 0) { var opp = list[0]; var creator = opp.CreatorUser; Console.WriteLine(creator.Name); } Assert.True(list.Count > 0); }
public IList <OpportunityEntity> GetAll() { return(_repository.GetAll()); }
public async Task <List <OpportunityResponse> > GetAll() { return(_mapper.Map <List <OpportunityResponse> >(await _opportunityRepository.GetAll())); }
public async Task <List <Opportunity> > GetAll() { return(await _opportunityRepository.GetAll()); }
public IEnumerable <Opportunity> GetAll() { return(_opportunityRepository.GetAll()); }