public MongoRepositoryTests()
        {
            var mongoStorage = StorageFabric.GetStorageBySettings();

            this.objectIdRepository = new GenericMongoRepository <ObjectIdTestEntity, string>(mongoStorage);
            this.guidIdRepository   = new GenericMongoRepository <GuidIdTestEntity, Guid>(mongoStorage);
        }
 public void CanDropCollection()
 {
     InternalCanDropCollection(StorageFabric.GetStorageByConnectionString());
     InternalCanDropCollection(StorageFabric.GetStorageBySettings());
 }
 public void CanThrowExceptionIfCollectionNameAttributeEmpty()
 {
     InternalCanThrowExceptionIfCollectionNameAttributeEmpty(StorageFabric.GetStorageByConnectionString());
     InternalCanThrowExceptionIfCollectionNameAttributeEmpty(StorageFabric.GetStorageBySettings());
 }