예제 #1
0
        public void SellSpreadDataDictionary_makes_without_symbols_makes_empty_dictionary()
        {
            this.qProvider.Update(0, "RTS-12.13_FT", 0, 0, 143100, 300);
            this.qProvider.Update(0, "Si-12.13_FT", 33200, 100, 0, 0);
            this.qProvider.Update(0, "Eu-12.13_FT", 41000, 200, 0, 0);

            IGenericFactory <IDictionary <string, double> > factory =
                new SellSpreadDataDictionaryFactory(this.qProvider, this.leftLeg, this.rightLeg);

            IDictionary <string, double> result = factory.Make();

            Assert.AreEqual(0, result.Count);
        }
예제 #2
0
        public void SellSpreadDataDictionary_makes_empty_dictionary()
        {
            this.leftLeg.Add("RTS-12.13_FT");
            this.rightLeg.Add("Si-12.13_FT");
            this.rightLeg.Add("Eu-12.13_FT");

            IGenericFactory <IDictionary <string, double> > factory =
                new SellSpreadDataDictionaryFactory(this.qProvider, this.leftLeg, this.rightLeg);

            IDictionary <string, double> result = factory.Make();

            Assert.AreEqual(0, result.Count);
        }