public DataGetSession Start() { DataGetService service = new DataGetBuilder() .WithHash(FileHash.Random()) .WithPipeline(new PipelineSimulator()) .WithGlue(A.Fake <DataGetToGlue>()) .WithDataStore(A.Fake <DataGetToDataStore>()) .WithDataMap(A.Fake <DataGetToDataMap>()) .Build(); return(new DataGetSession(service)); }
private void StartDataGet() { DataGetHooks hooks = new DataGetHooks(); DataGet = new DataGetBuilder() .WithHash(Hash) .WithStrategy(Settings.Strategy) .WithGlue(Coordinator.AsDataGet()) .WithPipeline(Pipeline) .WithDataStore(DataStore.AsDataGet()) .WithDataMap(DataMap.AsDataGet()) .Build(hooks); DataGet.Start(); }