예제 #1
0
        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));
        }
예제 #2
0
 public UserGetter(UserGetterSerialized userGetterSerialized,
                   UserGetterDomain userGetterDomain)
 {
     UserGetterSerialized = userGetterSerialized;
     UserGetterDomain     = userGetterDomain;
 }