Esempio n. 1
0
 public void Test_FlowZteCsv_Flow()
 {
     var csv = new FlowZteCsv
     {
         MaxRrcUsers = 0,
         DownlinkAverageActiveUsers = 1,
         UplinkAverageActiveUsers = 2,
         DownlinkPdcpFlowInMByte = 3,
         UplindPdcpFlowInMByte = 4
     };
     var item = csv.MapTo<FlowZte>();
     item.MaxRrcUsers.ShouldBe(0);
     item.DownlinkAverageActiveUsers.ShouldBe(1);
     item.UplinkAverageActiveUsers.ShouldBe(2);
     item.DownlinkPdcpFlow.ShouldBe(24);
     item.UplindPdcpFlow.ShouldBe(32);
 }
Esempio n. 2
0
 public void Test_FlowZteCsv_QciThroughput()
 {
     var csv = new FlowZteCsv
     {
         Qci8DownlinkIpThroughputHigh = "123000",
         Qci8DownlinkIpThroughputLow = "2048",
         Qci8UplinkIpThroughputHigh = "230",
         Qci8UplinkIpThroughputLow = "3072",
         Qci9DownlinkIpThroughputHigh = "2340",
         Qci9DownlinkIpThroughputLow = "1024",
         Qci9UplinkIpThroughputHigh = "45600",
         Qci9UplinkIpThroughputLow = "4096"
     };
     var item = csv.MapTo<FlowZte>();
     item.Qci8DownlinkIpThroughput.ShouldBe(123002);
     item.Qci8UplinkIpThroughput.ShouldBe(233);
     item.Qci9DownlinkIpThroughput.ShouldBe(2341);
     item.Qci9UplinkIpThroughput.ShouldBe(45604);
 }
Esempio n. 3
0
 public void Test_FlowZteCsv_Duration()
 {
     var csv = new FlowZteCsv
     {
         Qci8DownlinkIpThroughputDuration = "234000",
         Qci8UplinkIpThroughputDuration = "156000",
         Qci9DownlinkIpThroughputDuration = "148000",
         Qci9UplinkIpThroughputDuration = "27000",
         SchedulingTm3 = 17,
         SchedulingTm3Rank2 = 19,
         PdcpDownlinkDuration = 25,
         PdcpUplinkDuration = 112
     };
     var item = csv.MapTo<FlowZte>();
     item.Qci8DownlinkIpDuration.ShouldBe(234);
     item.Qci8UplinkIpDuration.ShouldBe(156);
     item.Qci9DownlinkIpDuration.ShouldBe(148);
     item.Qci9UplinkIpDuration.ShouldBe(27);
     item.SchedulingTm3.ShouldBe(17);
     item.SchedulingTm3Rank2.ShouldBe(19);
     item.PdcpDownlinkDuration.ShouldBe(25);
     item.PdcpUplinkDuration.ShouldBe(112);
 }
Esempio n. 4
0
 public void Test_FlowZteCsv()
 {
     var csv = new FlowZteCsv
     {
         AverageActiveUsers = 123.4,
         AverageRrcUsers = 223.4,
         MaxActiveUsers = 234,
         StatTime = new DateTime(2016,3,4),
         ENodebId = 123,
         SectorId = 6
     };
     var item = csv.MapTo<FlowZte>();
     item.AverageActiveUsers.ShouldBe(123.4);
     item.AverageRrcUsers.ShouldBe(223.4);
     item.MaxActiveUsers.ShouldBe(234);
     item.StatTime.ShouldBe(new DateTime(2016,3,4));
     item.ENodebId.ShouldBe(123);
     item.SectorId.ShouldBe((byte)6);
 }