public void Map_Null_Tests() { CdmaRegionStatExcel info = null; var stat = info.MapTo <CdmaRegionStat>(); stat.ShouldBeNull(); }
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); }
public CdmaRegionStat Match(CdmaRegionStatExcel stat) { return(FirstOrDefault(x => x.Region == stat.Region && x.StatDate == stat.StatDate)); }