public User GetUserByIdentityId(string id) { var user = FakeRepository.Get.Users.SingleOrDefault(u => u.IdentityId.Equals(id, StringComparison.OrdinalIgnoreCase)); return(FakeConverters.FakeUserToUser(user)); }
public User GetUserByEmail(string email) { var user = FakeRepository.Get.Users.SingleOrDefault(u => u.Email.Equals(email, StringComparison.OrdinalIgnoreCase)); return(FakeConverters.FakeUserToUser(user)); }