public void ShouldRegisterCustomerWhenCommandIsValid() { var command = new CreateCustomerCommand(); command.FirstNome = "João"; command.LastNome = "Nascimento"; command.Document = "12345678914"; command.Email = "*****@*****.**"; command.Phone = "2148987841"; Assert.Equals(true, command.IsValidCommand()); var handler = new CustomerHandler(new FakeCustomerRepository(), new FakeEmailService()); var result = handler.Handler(command); Assert.AreNotEqual(null, result); Assert.AreEqual(true, handler.IsValid); }