public TransformerProcessorAdapterTest()
 {
     _Transform = Substitute.For<ITransformProcessor<double, string, int>>();
     _Transform.Transform(Arg.Any<double>(), Arg.Any<IProgress<int>>(), Arg.Any<CancellationToken>())
               .Returns(x => Task.FromResult(string.Format("{0}", (double)x[0])));
     _BackBone = Substitute.For<IBackbone<bool, int>>();
     _Progess = Substitute.For<IProgress<int>>();
     _CancellationTokenSource = new CancellationTokenSource();
     _TransformerProcessorAdapter = new TransformerProcessorAdapter<bool, double, string, int>(_Transform);
 }
 public TransformerProcessorAdapterTest()
 {
     _Transform = Substitute.For <ITransformProcessor <double, string, int> >();
     _Transform.Transform(Arg.Any <double>(), Arg.Any <IProgress <int> >(), Arg.Any <CancellationToken>())
     .Returns(x => Task.FromResult(string.Format("{0}", (double)x[0])));
     _BackBone = Substitute.For <IBackbone <bool, int> >();
     _Progess  = Substitute.For <IProgress <int> >();
     _CancellationTokenSource     = new CancellationTokenSource();
     _TransformerProcessorAdapter = new TransformerProcessorAdapter <bool, double, string, int>(_Transform);
 }