Example #1
0
        public void Map_Null_Tests()
        {
            CdmaRegionStatExcel info = null;
            var stat = info.MapTo <CdmaRegionStat>();

            stat.ShouldBeNull();
        }
Example #2
0
        public void Map_Region_Tests()
        {
            var info = new CdmaRegionStatExcel
            {
                Region    = "foshan1",
                Drop2GNum = 22
            };
            var stat = info.MapTo <CdmaRegionStat>();

            stat.Region.ShouldBe("foshan1");
            stat.Drop2GNum.ShouldBe(22);
        }
Example #3
0
 public CdmaRegionStat Match(CdmaRegionStatExcel stat)
 {
     return(FirstOrDefault(x => x.Region == stat.Region && x.StatDate == stat.StatDate));
 }