public async Task IsValidDomainReturnsTrueIfUriPresent() { var service = new DomainValidatorService(new HttpClient()); Assert.True(await service.IsValidDomain("christianlevesque.io/blog")); }
public async Task IsValidDomainReturnsTrueIfProtocolPresent() { var service = new DomainValidatorService(new HttpClient()); Assert.True(await service.IsValidDomain("https://www.christianlevesque.io")); }
public async Task IsValidDomainReturnsFalseIfDomainNotExists() { var service = new DomainValidatorService(new HttpClient()); Assert.False(await service.IsValidDomain("christian levesque io")); }