Beispiel #1
0
        private PrepareStoreCopyRequestHandler CreateHandler()
        {
            _catchupServerProtocol = new CatchupServerProtocol();
            _catchupServerProtocol.expect(CatchupServerProtocol.State.PREPARE_STORE_COPY);
            System.Func <NeoStoreDataSource> dataSourceSupplier = () => _neoStoreDataSource;
            when(_neoStoreDataSource.StoreId).thenReturn(new Org.Neo4j.Storageengine.Api.StoreId(1, 2, 5, 3, 4));

            PrepareStoreCopyFilesProvider prepareStoreCopyFilesProvider = mock(typeof(PrepareStoreCopyFilesProvider));

            when(prepareStoreCopyFilesProvider.PrepareStoreCopyFiles(any())).thenReturn(_prepareStoreCopyFiles);

            return(new PrepareStoreCopyRequestHandler(_catchupServerProtocol, dataSourceSupplier, prepareStoreCopyFilesProvider));
        }
Beispiel #2
0
 public PrepareStoreCopyRequestHandler(CatchupServerProtocol catchupServerProtocol, System.Func <NeoStoreDataSource> dataSourceSupplier, PrepareStoreCopyFilesProvider prepareStoreCopyFilesProvider)
 {
     this._protocol = catchupServerProtocol;
     this._prepareStoreCopyFilesProvider = prepareStoreCopyFilesProvider;
     this._dataSourceSupplier            = dataSourceSupplier;
 }