コード例 #1
0
        protected override void Setup()
        {
            MockStrategyFactory = MockRepository.GenerateStub <IUpdateItemFactory>();

            StockItem = ItemBuilder
                        .Build
                        .WithName(ActualName)
                        .AnInstance();

            Factory = new UpdateItemFactory();
        }
コード例 #2
0
 public Program(IUpdateItemFactory strategyFactory)
 {
     UpdateItemFactory = strategyFactory;
 }