Ejemplo n.º 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();
        }
Ejemplo n.º 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();
        }