public BeaconsMongoDbPersistenceTest() { ConfigParams config = ConfigParams.FromTuples( "collection", "beacons", "connection.uri", "mongodb://localhost:27017/test" ); Persistence = new BeaconsMongoDbPersistence(); Persistence.Configure(config); Persistence.OpenAsync(null).Wait(); Persistence.ClearAsync(null).Wait(); Fixture = new BeaconsPersistenceFixture(Persistence); }
public MemoryBeaconsPersistenceTest() { Persistence = new BeaconsMemoryPersistence(); Fixture = new BeaconsPersistenceFixture(Persistence); }