public async Task CheckDomainsDatabase_ValidQueryString_ReturnListOfDomainsDataObject(string data)
        {
            var domainDatabaseService = new DomainDatabaseService();

            var results = await domainDatabaseService.CheckDomainsDatabase(data);

            Assert.That(results, Is.TypeOf <ObservableCollection <DomainsData> >());
        }
        public async Task CheckDomainsDatabase_ValidQueryString_ReturnListWithRequestedDomainString(string data)
        {
            var domainDatabaseService = new DomainDatabaseService();

            var results = await domainDatabaseService.CheckDomainsDatabase(data);

            var result = results[0].Domain;

            Assert.That(result, Does.Contain("test"));
        }
        public void CheckDomainsDatabase_NonExistentDomainString_ThrowException(string data)
        {
            var domainDatabaseService = new DomainDatabaseService();

            Assert.That(async() => await domainDatabaseService.CheckDomainsDatabase(data), Throws.Exception);
        }