Exemplo n.º 1
0
        public void RepoTeamInviteTestsGetAllInvites()
        {
            List <TeamInvite> expected = new List <TeamInvite> {
                new TeamInvite {
                    TeamInviteID = 0
                },
                new TeamInvite {
                    TeamInviteID = 1
                },
                new TeamInvite {
                    TeamInviteID = 2
                }
            };

            _inviteSet.Object.AddRange(expected);
            ConnectMocksToDataStore(expected);
            List <TeamInvite> actual = _repo.GetAllTeamInvites();

            CollectionAssert.AreEqual(expected, actual);
        }
        public JsonResult GetInvites()
        {
            List <TeamInvite> result = _repo.GetAllTeamInvites();

            return(Json(result, JsonRequestBehavior.AllowGet));
        }