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()); }
public void CreateUserCheckEmail() { var currentUser = new SuiteUsers(Guid.NewGuid(), "SuiteEvents", "username", "secret", "*****@*****.**", "nome", "cognome"); Assert.AreNotEqual(string.Empty, currentUser.Email); }