示例#1
0
        public void TestMethod1()
        {
            var           start    = new DateTime(2013, 10, 1);
            var           end      = new DateTime(2013, 10, 28);
            WMPRepository target   = new WMPRepository();
            var           category = "EY";//EY IBT PT C YT
            var           actual   = target.GetAmountTrendData(start, end, category, "all", "all");

            foreach (DataRow item in actual.Rows)
            {
                //Console.WriteLine("WMP_Trend_{0}_{1}", category, item["Type"].ToString());
                Console.WriteLine("{0}\t{1}\t{2}\t{3}\t{4}", item["Type"].ToString(), item["Count"], item["CountPercent"], item["Amount"], item["AmountPercent"]);
            }
            Assert.IsNotNull(actual);
        }