예제 #1
0
 public ItemServiceTests()
 {
     _chance             = new Chance();
     _commandDispatcher  = Substitute.For <ICommandDispatcher>();
     _itemCommandFactory = Substitute.For <IItemCommandFactory>();
     _itemService        = new ItemService(_commandDispatcher, _itemCommandFactory);
 }
예제 #2
0
 public ItemService(ICommandDispatcher dispatcher, IItemCommandFactory itemCommandFactory)
 {
     _dispatcher         = dispatcher;
     _itemCommandFactory = itemCommandFactory;
 }