コード例 #1
0
        public void GetUsageDataForElement_ThreeDigitSIC()
        {
            ElementUsageManager manager = new ElementUsageManager();
            ElementUsageDataLoader loader = new ElementUsageDataLoader(manager);

            loader.LoadSICUsageData("S:\\bin\\TEST_SICUsage.xml");

            Element e = manager.GetUsageDataForElement("usfr-pte_AccountsPayable", "357");

            Assert.IsNotNull(e);

            Assert.AreEqual(4, e.UsedByCompanyCount);
            Assert.AreEqual(57.142857142857142857142857140M, e.UsagePercent);
        }
コード例 #2
0
        public void GetUsageDataForElement_ThreeDigitSIC()
        {
            ElementUsageManager    manager = new ElementUsageManager();
            ElementUsageDataLoader loader  = new ElementUsageDataLoader(manager);

            loader.LoadSICUsageData("S:\\bin\\TEST_SICUsage.xml");

            Element e = manager.GetUsageDataForElement("usfr-pte_AccountsPayable", "357");

            Assert.IsNotNull(e);

            Assert.AreEqual(4, e.UsedByCompanyCount);
            Assert.AreEqual(57.142857142857142857142857140M, e.UsagePercent);
        }
コード例 #3
0
        public void GetUsageDataForElement()
        {
            ElementUsageManager manager = new ElementUsageManager();
            ElementUsageDataLoader loader = new ElementUsageDataLoader(manager);

            loader.LoadSICUsageData("S:\\bin\\TEST_SICUsage.xml");

            Element e = manager.GetUsageDataForElement("usfr-pte_AdditionalPaidCapital", "3572");

            Assert.IsNotNull(e);

            Assert.AreEqual(2,e.UsedByCompanyCount);
            Assert.AreEqual(100.00000000000M,e.UsagePercent);
        }
コード例 #4
0
        public void GetUsageDataForElement()
        {
            ElementUsageManager    manager = new ElementUsageManager();
            ElementUsageDataLoader loader  = new ElementUsageDataLoader(manager);

            loader.LoadSICUsageData("S:\\bin\\TEST_SICUsage.xml");

            Element e = manager.GetUsageDataForElement("usfr-pte_AdditionalPaidCapital", "3572");

            Assert.IsNotNull(e);

            Assert.AreEqual(2, e.UsedByCompanyCount);
            Assert.AreEqual(100.00000000000M, e.UsagePercent);
        }