Beispiel #1
0
        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);
        }
Beispiel #2
0
 public IList <OpportunityEntity> GetAll()
 {
     return(_repository.GetAll());
 }
Beispiel #3
0
 public async Task <List <OpportunityResponse> > GetAll()
 {
     return(_mapper.Map <List <OpportunityResponse> >(await _opportunityRepository.GetAll()));
 }
Beispiel #4
0
 public async Task <List <Opportunity> > GetAll()
 {
     return(await _opportunityRepository.GetAll());
 }
Beispiel #5
0
 public IEnumerable <Opportunity> GetAll()
 {
     return(_opportunityRepository.GetAll());
 }