Пример #1
0
 public ProcessorTests()
 {
     mTimeGiver = Substitute.For <ITimeGiver>();
     mUnderTest = new Processor <int>(13, mTimeGiver);
 }
Пример #2
0
 public Processor(TWrappedProcessor wrappedProcessor,
                  ITimeGiver timeGiver)
 {
     mWrappedProcessor = wrappedProcessor;
     mTimeGiver        = timeGiver;
 }