示例#1
0
        public void Validate_CorrectUrlPath_ReturnsOk(string path)
        {
            var commandFixture = new CreateUrl(path);
            var sut            = new CreateUrlValidator();
            var result         = sut.Validate(commandFixture);

            result.IsSuccess.Should().BeTrue();
        }
示例#2
0
        public void Validate_InCorrectUrlPath_ReturnsFail(string path)
        {
            var commandFixture = new CreateUrl(path);
            var sut            = new CreateUrlValidator();
            var result         = sut.Validate(commandFixture);

            result.IsFailure.Should().BeTrue();
            result.Error.Should().NotBeNullOrEmpty();
        }