/// <summary> /// ctor /// </summary> public GenericRepositoryTest() { _documentSessionMock = new Mock<IDocumentSession>(); _documentStoreMock = new Mock<IDocumentStore>(); _genericRepository = new GenericRepository<TestObject>(_documentStoreMock.Object); _testObjectService = new TestObjectService(); }
public GenericRepositoryTest() { IDocumentStore documentStore = new EmbeddableDocumentStore { RunInMemory = true, Configuration = { RunInUnreliableYetFastModeThatIsNotSuitableForProduction = true } }; documentStore.Initialize(); _genericRepository = new GenericRepository<TestObject>(documentStore); _testObjectService = new TestObjectService(); }