Exemplo n.º 1
0
        public void Validate_ValidRequest()
        {
            var validator = new CreateFolderCommandValidator();

            var query1  = new CreateFolderCommand("Test", null);
            var result1 = validator.Validate(query1);

            Assert.True(result1.IsValid);
        }
Exemplo n.º 2
0
        public void Validate_NameIsNullString_Invalid()
        {
            var validator = new CreateFolderCommandValidator();

            var query  = new CreateFolderCommand(null, null);
            var result = validator.Validate(query);

            Assert.False(result.IsValid);
        }