Exemplo n.º 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);
 }
Exemplo n.º 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;
 }
Exemplo n.º 3
0
 public DomainPoolGenerator(IPercentileSelector percentileSelector, IEncounterGenerator encounterGenerator, ITreasureGenerator treasureGenerator)
 {
     this.percentileSelector = percentileSelector;
     this.encounterGenerator = encounterGenerator;
     this.treasureGenerator = treasureGenerator;
 }
Exemplo n.º 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);
 }
Exemplo n.º 6
0
 public TreasureGeneratorEventGenDecorator(ITreasureGenerator innerGenerator, GenEventQueue eventQueue)
 {
     this.eventQueue     = eventQueue;
     this.innerGenerator = innerGenerator;
 }
Exemplo n.º 7
0
 public void Setup()
 {
     itemVerifier      = new ItemVerifier();
     treasureGenerator = GetNewInstanceOf <ITreasureGenerator>();
 }