void IHandleCommand <CreateSuiteUserCommand> .Handle(CreateSuiteUserCommand command)
        {
            var suiteUser = new SuiteUsers(command.AggregateId, command.ApplicationName, command.UserName,
                                           command.Password, command.Email, command.Nome, command.Cognome);

            Repository().Save(suiteUser, Guid.NewGuid());
        }
Exemple #2
0
        public void CreateUserCheckEmail()
        {
            var currentUser = new SuiteUsers(Guid.NewGuid(), "SuiteEvents", "username", "secret", "*****@*****.**", "nome", "cognome");

            Assert.AreNotEqual(string.Empty, currentUser.Email);
        }