Exemple #1
0
        public static void UpdateUser(User user, UserData userData)
        {
            Verify.Argument.IsNotNull(user, "user");
            Verify.Argument.IsNotNull(userData, "userData");

            user.Commits = userData.Commits;
        }
Exemple #2
0
        public static User CreateUser(Repository repository, UserData userData)
        {
            Verify.Argument.IsNotNull(repository, "repository");
            Verify.Argument.IsNotNull(userData, "userData");

            return new User(repository, userData.UserName, userData.Email, userData.Commits);
        }