Ejemplo n.º 1
0
        public void AddShareHoldersTest()
        {
            ShareHolders target = new ShareHolders(); 
            target.Refresh();
            Assert.AreEqual(2, target.GetSubsidiaries("Ahold").Count);

            Assert.AreEqual(2,target.GetShareHolders("123").Count);
            Assert.AreEqual("Ahold", target.GetShareHolders("123")[0]);
            Assert.AreEqual("Unilever", target.GetShareHolders("123")[1]);

            Assert.AreNotEqual(null, target.GetShareHolders("Ahold"));
            Assert.AreEqual(0, target.GetShareHolders("Ahold").Count);
        }
Ejemplo n.º 2
0
        public void MyTestInitialize()
        {
            _ShareHolders = new ShareHolders();
            _ShareHolders.InsertCorporate(CreateTestCorporate());
            _ShareHolders.InsertCorporate(CreateTestCorporate2());

            string xmlString = @"
                                    
                      <node Text='Root1'>
                        
                       
                      </node>   
                    ";

            _ShareHolders.InsertCorporate(CreateTestCorporate3(xmlString));
            string xmlString2 = @"
                                    
                      <node Text='Root2'>
                        
                       
                      </node>   
                    ";

            _ShareHolders.InsertCorporate(CreateTestCorporate3(xmlString2));
        }