protected override void Setup() { MockStrategyFactory = MockRepository.GenerateStub <IUpdateItemFactory>(); StockItem = ItemBuilder .Build .WithName(ActualName) .AnInstance(); Factory = new UpdateItemFactory(); }
public Program(IUpdateItemFactory strategyFactory) { UpdateItemFactory = strategyFactory; }