public void Test_GetUser_Invites_Success() { var userRepo = new UserRepository(database); var usr = userRepo.CreateNew(new User { DateCreated = DateTime.Now, Email = "*****@*****.**", Name = "Jaytee" }); var invRepo = new InviteRepository(database, userRepo); var project = invRepo.CreateNew(new Project { CreatedByUserId = usr.Id, DateCreated = DateTime.Now, Description = "A demo api", Name = "DEMO API" }); var service = new InviteService(invRepo); var res = service.CreateInvite(new Core.Data.Payloads.InvitePayload { Email = "*****@*****.**", ProjectId = project.Id }, Guid.NewGuid()).Result; Assert.NotNull(res); var ivts = service.GetUserInvites("*****@*****.**", 0, 30).Result; Assert.NotNull(ivts); Assert.NotEmpty(ivts.Result); }