public GenericCollectionProviderTestFixture(IDocumentClientFactory documentClientFactory)
        {
            _documentClient = documentClientFactory.GetClient();
            _databaseId     = documentClientFactory.GetDatabaseId();

            _collectionProvider = new GenericCollectionProvider <TestDocument>(
                documentClientFactory,
                new DatabaseProvider(documentClientFactory));
        }
        public DatabaseProvider(IDocumentClientFactory documentClientFactory)
        {
            if (documentClientFactory == null)
            {
                throw new ArgumentNullException(nameof(documentClientFactory));
            }

            _documentClient = documentClientFactory.GetClient();
            _databaseId     = documentClientFactory.GetDatabaseId();
        }
 public DatabaseProviderTestFixture(IDocumentClientFactory documentClientFactory)
 {
     _documentClient   = documentClientFactory.GetClient();
     _databaseId       = documentClientFactory.GetDatabaseId();
     _databaseProvider = new DatabaseProvider(null);
 }