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(); }
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(); }