Beispiel #1
0
        public async Task IsValidDomainReturnsTrueIfUriPresent()
        {
            var service = new DomainValidatorService(new HttpClient());

            Assert.True(await service.IsValidDomain("christianlevesque.io/blog"));
        }
Beispiel #2
0
        public async Task IsValidDomainReturnsTrueIfProtocolPresent()
        {
            var service = new DomainValidatorService(new HttpClient());

            Assert.True(await service.IsValidDomain("https://www.christianlevesque.io"));
        }
Beispiel #3
0
        public async Task IsValidDomainReturnsFalseIfDomainNotExists()
        {
            var service = new DomainValidatorService(new HttpClient());

            Assert.False(await service.IsValidDomain("christian levesque io"));
        }