Ejemplo n.º 1
0
        public void Test_BtsWithTownIdContainer()
        {
            var excelContainer = new BtsExcelWithTownIdContainer
            {
                TownId   = 33,
                BtsExcel = new BtsExcel
                {
                    Address = "abc",
                    Name    = "def"
                }
            };
            var container = excelContainer.MapTo <BtsWithTownIdContainer>();

            container.TownId.ShouldBe(33);
            container.CdmaBts.Address.ShouldBe("abc");
            container.CdmaBts.Name.ShouldBe("def");
        }
Ejemplo n.º 2
0
 public void Test_BtsWithTownIdContainer()
 {
     var excelContainer = new BtsExcelWithTownIdContainer
     {
         TownId = 33,
         BtsExcel = new BtsExcel
         {
             Address = "abc",
             Name = "def"
         }
     };
     var container = excelContainer.MapTo<BtsWithTownIdContainer>();
     container.TownId.ShouldBe(33);
     container.CdmaBts.Address.ShouldBe("abc");
     container.CdmaBts.Name.ShouldBe("def");
 }