Beispiel #1
0
        public void CreateAccountWithNameNullShouldFalse()
        {
            // Arrange
            var command = new CreateBankAccountCommand
            {
                Name = null
            };

            // Assert
            command.IsValid.Should().BeFalse();
        }
Beispiel #2
0
        public void CreateAccountWithNameValidShouldTrue()
        {
            // Arrange
            var command = new CreateBankAccountCommand
            {
                Name = "NuConta"
            };

            // Assert
            command.IsValid.Should().BeTrue();
        }
Beispiel #3
0
        public void CreateAccountWithNameInvalidShouldFalse(int nameLegth)
        {
            // Arrange
            var command = new CreateBankAccountCommand
            {
                Name = new string('a', nameLegth)
            };

            // Assert
            command.IsValid.Should().BeFalse();
        }