private ICanvasWorker <TCanvasInput, TCanvasOutput> GetCanvasWorker <TCanvasInput, TCanvasOutput>(ICanvasCnvCaller <TCanvasInput, TCanvasOutput> canvasCnvCaller, Func <IFileLocation, TCanvasOutput> getFromStub) where TCanvasInput : ICanvasCheckpointInput where TCanvasOutput : ICanvasOutput { if (!RunCnvDetection(_detectCnvDefault)) { return(new NullCanvasWorker <TCanvasInput, TCanvasOutput>()); } ICanvasAnnotationFileProvider annotationFileProvider = GetAnnotationFileProvider(); var canvasOutputNamingConventionFactory = new CanvasOutputNamingConventionFactory <TCanvasInput, TCanvasOutput>(annotationFileProvider, getFromStub); var canvasCheckpoint = new CanvasCheckpoint <TCanvasInput, TCanvasOutput>(canvasCnvCaller, canvasOutputNamingConventionFactory); return(new CanvasWorker <TCanvasInput, TCanvasOutput>(canvasCheckpoint)); }
public CanvasCheckpoint(ICanvasCnvCaller <TCanvasInput, TCanvasOutput> canvasCnvCaller, CanvasOutputNamingConventionFactory <TCanvasInput, TCanvasOutput> canvasOutputNamingConventionFactory) { _canvasCnvCaller = canvasCnvCaller; _canvasOutputNamingConventionFactory = canvasOutputNamingConventionFactory; }