Beispiel #1
0
        public MemberServiceMock(IServiceDataMocks dataMocks)
        {
            _dataMocks     = dataMocks;
            _teamMemberMap = new Dictionary <string, IEnumerable <TeamMember> >();

            _teamMemberMap.Add(dataMocks.Teams[0].Slug, dataMocks.Members.ToList());
            _teamMemberMap.Add(dataMocks.Teams[1].Slug, dataMocks.Members.Take(2));
            _teamMemberMap.Add(dataMocks.Teams[2].Slug, dataMocks.Members.Take(1));

            _userTeamMap = new Dictionary <string, IEnumerable <SimpleTeamDetail> >();
            _userTeamMap.Add(dataMocks.Users[0].Username, dataMocks.SimpleTeams.ToList());
            _userTeamMap.Add(dataMocks.Users[1].Username, dataMocks.SimpleTeams.Take(2));
            _userTeamMap.Add(dataMocks.Users[2].Username, dataMocks.SimpleTeams.Take(1));
        }
Beispiel #2
0
 public UserServiceMock(IServiceDataMocks dataMocks)
 {
     _dataMocks = dataMocks;
 }
Beispiel #3
0
 public TeamServiceMock(IServiceDataMocks dataMocks)
 {
     _dataMocks = dataMocks;
 }