コード例 #1
0
 public void Setup()
 {
     mockCoinGenerator  = new Mock <ICoinGenerator>();
     mockGoodsGenerator = new Mock <IGoodsGenerator>();
     mockItemsGenerator = new Mock <IItemsGenerator>();
     generator          = new TreasureGenerator(mockCoinGenerator.Object, mockGoodsGenerator.Object, mockItemsGenerator.Object);
 }
コード例 #2
0
 public EquipmentGenerator(ICollectionsSelector collectionsSelector, IWeaponGenerator weaponGenerator,
     ITreasureGenerator treasureGenerator, IArmorGenerator armorGenerator, Generator generator)
 {
     this.collectionsSelector = collectionsSelector;
     this.armorGenerator = armorGenerator;
     this.weaponGenerator = weaponGenerator;
     this.treasureGenerator = treasureGenerator;
     this.generator = generator;
 }
コード例 #3
0
 public DomainPoolGenerator(IPercentileSelector percentileSelector, IEncounterGenerator encounterGenerator, ITreasureGenerator treasureGenerator)
 {
     this.percentileSelector = percentileSelector;
     this.encounterGenerator = encounterGenerator;
     this.treasureGenerator = treasureGenerator;
 }
コード例 #4
0
 public DomainContentsGenerator(IAreaPercentileSelector areaPercentileSelector, IPercentileSelector percentileSelector, ITreasureGenerator treasureGenerator)
 {
     this.areaPercentileSelector = areaPercentileSelector;
     this.percentileSelector = percentileSelector;
     this.treasureGenerator = treasureGenerator;
 }
 public void Setup()
 {
     mockInnerGenerator = new Mock <ITreasureGenerator>();
     mockEventQueue     = new Mock <GenEventQueue>();
     decorator          = new TreasureGeneratorEventGenDecorator(mockInnerGenerator.Object, mockEventQueue.Object);
 }
コード例 #6
0
 public TreasureGeneratorEventGenDecorator(ITreasureGenerator innerGenerator, GenEventQueue eventQueue)
 {
     this.eventQueue     = eventQueue;
     this.innerGenerator = innerGenerator;
 }
コード例 #7
0
 public void Setup()
 {
     itemVerifier      = new ItemVerifier();
     treasureGenerator = GetNewInstanceOf <ITreasureGenerator>();
 }