Beispiel #1
0
 public void TestTitle_Title4()
 {
     var source = new WorkItemExcel
     {
         Title = "省-集团测试保障-关键站点清单收集"
     };
     var dest = Mapper.Map<WorkItem>(source);
     dest.Type.ShouldBe(WorkItemType.Others);
     dest.Subtype.ShouldBe(WorkItemSubtype.Others);
 }
Beispiel #2
0
 public void TestTitle_Title5()
 {
     var source = new WorkItemExcel
     {
         Title = "日报--请地市提交网络性能指标异常分析处理报告"
     };
     var dest = Mapper.Map<WorkItem>(source);
     dest.Type.ShouldBe(WorkItemType.DailyReport);
     dest.Subtype.ShouldBe(WorkItemSubtype.Others);
 }
Beispiel #3
0
 public void TestTitle_Title3()
 {
     var source = new WorkItemExcel
     {
         Title = "翼路通—2016年第9周2G道路恶化小区清单"
     };
     var dest = Mapper.Map<WorkItem>(source);
     dest.Type.ShouldBe(WorkItemType.Yilutong);
     dest.Subtype.ShouldBe(WorkItemSubtype.Others);
 }
Beispiel #4
0
 public void TestTitle_Title1()
 {
     var source = new WorkItemExcel
     {
         Title = "佛山_日常网优作业计划_每周质量分析_20160307041"
     };
     var dest = Mapper.Map<WorkItem>(source);
     dest.Type.ShouldBe(WorkItemType.DailyTask);
     dest.Subtype.ShouldBe(WorkItemSubtype.WeeklyAnalysis);
 }
Beispiel #5
0
 public void TestTitle_TwoParts()
 {
     var source = new WorkItemExcel
     {
         Title = "佛山_RRC连接成功率恶化_150812001"
     };
     var dest = Mapper.Map<WorkItem>(source);
     dest.Type.ShouldBe(WorkItemType.RrcConnection);
     dest.Subtype.ShouldBe(WorkItemSubtype.Others);
 }
Beispiel #6
0
 public void TestTitle_ThreeParts()
 {
     var source = new WorkItemExcel
     {
         Title = "佛山_2G性能故障_小区级呼叫建立成功率异常_160307002"
     };
     var dest = Mapper.Map<WorkItem>(source);
     dest.Type.ShouldBe(WorkItemType.Kpi2G);
     dest.Subtype.ShouldBe(WorkItemSubtype.CallSetup);
 }
Beispiel #7
0
 public void TestBasicParameters()
 {
     var source = new WorkItemExcel
     {
         ENodebId = 111,
         SectorId = 22,
         Deadline = DateTime.Today,
         RejectTimes = 10001,
         StaffName = "bac",
         Title = ""
     };
     var dest = Mapper.Map<WorkItem>(source);
     dest.ENodebId.ShouldBe(111);
     dest.SectorId.ShouldBe((byte)22);
     dest.Deadline.ShouldBe(DateTime.Today);
     dest.RejectTimes.ShouldBe((short)10001);
     dest.StaffName.ShouldBe("bac");
 }