public User Get(string id) { var user = UserGetterSerialized.Get(id); if (user != null) { return(user); } var initials = id.Split(';')[0]; user = UserGetterDomain.Get(initials); if (user != null) { return(user); } var emailPlaceholder = id.Replace(";", "") + "@email"; return(new User(id, id, emailPlaceholder)); }
public UserGetter(UserGetterSerialized userGetterSerialized, UserGetterDomain userGetterDomain) { UserGetterSerialized = userGetterSerialized; UserGetterDomain = userGetterDomain; }