public void WhenAValidCommandIsGivenShouldBeValid()
        {
            //Given
            var command = new CreateAccountCommand("test", "1234");

            //When
            command.Validate();

            //Then
            Assert.True(command.Valid);
        }
        public void WhenAnInvalidCommandIsGivenShouldBeInvalid()
        {
            //Given
            var command = new CreateAccountCommand("", "");

            //When
            command.Validate();

            //Then
            Assert.True(command.Invalid);
        }
        public void Should_Request_Validating()
        {
            var request = new CreateAccountCommand.Request();

            _authenticateCommand.Validate(request);

            var keys = _notifications.Notifications.Select(x => x.Key).ToArray();

            Assert.AreEqual(5, _notifications.Notifications.Count);
            Assert.IsTrue(keys.Contains(nameof(request.Name)));
            Assert.IsTrue(keys.Contains(nameof(request.Cpf)));
            Assert.IsTrue(keys.Contains(nameof(request.Address)));
            Assert.IsTrue(keys.Contains(nameof(request.Email)));
            Assert.IsTrue(keys.Contains(nameof(request.Phone)));
        }