예제 #1
0
 private TestInfo GetDefaultTestInfo()
 {
     return(new TestInfo
     {
         ExitedUsers = UserGenerator.GetFakeUsers(2),
         NewUser = DtoUserGenerator.GetUserWithRole(Roles.Admin),
         Roles = RoleGenerator.GetFakeRole(1),
         IsPasswordValid = true,
         IsEmailConfirmed = true
     });
 }
예제 #2
0
        private TestInfo GetDefaultTestInfo()
        {
            var users = UserGenerator.GetFakeUsers(2);

            return(new TestInfo
            {
                Users = users,
                Profiles = users.Select(u => new UserProfile {
                    Id = u.Id
                }).ToList()
            });
        }