Beispiel #1
0
        public void TestImport_EmptyDetailList_ImportTwoSameRecords_WithLargeRtd()
        {
            InitializeEmptyDetailsList();
            CdrRtdRecord record = InitializeRecord(1, 2, 5500);
            ImportCdrTaRecordsService service = new ImportMainCdrTaRecordsService(
                details, record);

            service.Import();
            service.Import();
            helper.AssertImportTwoSameRecordsResults(details, record);
        }
Beispiel #2
0
        private void Import(List <CdrTaRecord> details, CdrRtdRecord record)
        {
            ImportCdrTaRecordsService service = new ImportMainCdrTaRecordsService(details, record);

            service.Import();
            service = new ImportExcessCdrTaRecordsService(details, record);
            service.Import();
        }
Beispiel #3
0
        public void TestImport_EmptyDetailList_ImportOneRecord_WithSmallRtd()
        {
            InitializeEmptyDetailsList();
            CdrRtdRecord record = InitializeRecord(1, 2, 5.5);
            ImportCdrTaRecordsService service = new ImportMainCdrTaRecordsService(
                details, record);

            service.Import();
            helper.AssertImportUniqueRecordResults(details, record);
        }
        public void TestImport_OneElementDetailList_ImportSameRecord()
        {
            InitializeEmptyDetailsList();
            CdrRtdRecord record = InitializeRecord(1, 2, 5.5);
            ImportCdrTaRecordsService service = new ImportMainCdrTaRecordsService(
                details, record);

            service.Import();
            service = new ImportExcessCdrTaRecordsService(
                details, record);
            service.Import();
            helper.AssertImportUniqueRecordResults(details, record);
        }
Beispiel #5
0
        public void TestImport_EmptyDetailList_ImportTwoDifferentRecords()
        {
            InitializeEmptyDetailsList();
            CdrRtdRecord record1 = InitializeRecord(1, 2, 5500);
            ImportCdrTaRecordsService service = new ImportMainCdrTaRecordsService(
                details, record1);

            service.Import();
            CdrRtdRecord record2 = InitializeRecord(2, 3, 5.5);

            service = new ImportMainCdrTaRecordsService(details, record2);
            service.Import();
            helper.AssertImportTwoDifferentRecordsResults(details, record1, record2);
        }
 public void TestImport_OneElementDetailList_ImportOneRecord_WithSameCell()
 {
     for (int rtd = 800; rtd < 3000; rtd += 100)
     {
         InitializeEmptyDetailsList();
         CdrRtdRecord record1 = InitializeRecord(1, 2, InterferenceStat.LowerBound / 2);
         ImportCdrTaRecordsService service = new ImportMainCdrTaRecordsService(
             details, record1);
         service.Import();
         CdrRtdRecord record2 = InitializeRecord(1, 2, rtd);
         service = new ImportExcessCdrTaRecordsService(
             details, record2);
         service.Import();
         helper.AssertImportUniqueRecordResults(details, record1, record2);
     }
 }