示例#1
0
        public User GetUserByIdentityId(string id)
        {
            var user = FakeRepository.Get.Users.SingleOrDefault(u => u.IdentityId.Equals(id, StringComparison.OrdinalIgnoreCase));

            return(FakeConverters.FakeUserToUser(user));
        }
示例#2
0
        public User GetUserByEmail(string email)
        {
            var user = FakeRepository.Get.Users.SingleOrDefault(u => u.Email.Equals(email, StringComparison.OrdinalIgnoreCase));

            return(FakeConverters.FakeUserToUser(user));
        }