Exemplo n.º 1
0
        public async Task IsValidDomainReturnsTrueIfUriPresent()
        {
            var service = new DomainValidatorService(new HttpClient());

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

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

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