public Timpex(TimpexPredicate timpexPredicate, CounterPrinter counterPrinter, TimpexPrinter timpexPrinter, Counter counter) { _timpexPredicate = timpexPredicate; _counterPrinter = counterPrinter; _timpexPrinter = timpexPrinter; _counter = counter; }
protected override void Arrange() { base.Arrange(); base.Act(); Counter.Stub(x => x.Count).Return(2); TimpexPredicate.Stub(x => x.Matches(Counter)).Return(false); CounterPrinter.Stub(x => x.Print(Counter)).Return("2"); }
protected override void Arrange() { base.Arrange(); base.Act(); Counter.Stub(x => x.Count).Return(3); TimpexPredicate.Stub(x => x.Matches(Counter)).Return(false); HandlerBase.Stub(x => x.HandleWordBasedOnCounter(Counter)).Return(PexWord); ActualWord.Stub(x => x.Value()).Return("tim"); WordAndCountPrinter.Stub(x => x.Print(Counter, ActualWord)).Return("tim 3"); }
public AdvancedWordPrinter(HandlerBase handlerBase, TimpexPredicate timpexPredicate, WordAndCountPrinter wordAndCountPrinter, SimpleWordPrinter simpleWordPrinter) { _timpexPredicate = timpexPredicate; _handlerBase = handlerBase; _wordAndCountPrinter = wordAndCountPrinter; }