Ejemplo n.º 1
0
        public void Initialize()
        {
            _factory = new TestEquipmentFactory();

            _random = new Mock <IRandom>();
            _random.Setup(x => x.Next()).Returns(0);
            _random.Setup(x => x.NextDouble()).Returns(0);

            _alchemy            = new AlchemyOrb(_random.Object);
            _anullment          = new AnullmentOrb(_random.Object);
            _augmentation       = new AugmentationOrb(_random.Object);
            _transmutation      = new TransmutationOrb(_random.Object);
            _vaal               = new VaalOrb(_random.Object);
            _currencyTestHelper = new CurrencyTestHelper();
        }
Ejemplo n.º 2
0
        public CurrencyFactory(
            IFetchCurrencyValues currencyValueFetch,
            TransmutationOrb transmutation,
            AlterationOrb alteration,
            AugmentationOrb augmentation,
            AlchemyOrb alchemy,
            ChaosOrb chaos,
            RegalOrb regal,
            BlessedOrb blessed,
            ChanceOrb chance,
            DivineOrb divine,
            ExaltedOrb exalted,
            MasterCraft masterCraft,
            ScouringOrb scouring,
            //   VaalOrb vaal,
            AnullmentOrb anull
            )
        {
            Currency = new List <ICurrency>
            {
                transmutation,
                alteration,
                augmentation,
                alchemy,
                chaos,
                regal,
                blessed,
                chance,
                divine,
                exalted,
                masterCraft,
                scouring,
                //   vaal,
                anull
            };

            _currencyFetch = currencyValueFetch;
        }