Ejemplo n.º 1
0
        public static Subscriber Simplsub1()
        {
            //Location
            var loc = new Location
                {
                    ID = "5829224.3544318",
                    AddressLine1 = "8105 161ST AVE NE",
                    CityName = "REDMOND",
                    StateName = "WA",
                    ZipCode = "98052",
                    HeadendCode = "04",
                    CustomFields = DefaultCustomFields_Loc()
                };

            //Equipment
            const string unitAddr = "RDMDWAXAOL4-18-3-3";
            var equip = new EquipmentCollection
            {
                NewEquipment("MRCC00181AB9D01", EquipmentModels().Single(x=>x.TypeDescription == "AXS BPON ONT" && x.ModelDescription == "ONT1000M Data Port"), unitAddr, "ACTIVE"),
                NewEquipment("MRCC00181AB9M01", EquipmentModels().Single(x=>x.TypeDescription == "AXS BPON ONT" && x.ModelDescription == "ONT1000M MoCA Port"), unitAddr, "ACTIVE"),
                NewEquipment("MRCC00181AB9P01", EquipmentModels().Single(x=>x.TypeDescription == "AXS BPON ONT" && x.ModelDescription == "ONT1000M Phone Port"), unitAddr, "ACTIVE"),
                NewEquipment("MRCC00181AB9P02", EquipmentModels().Single(x=>x.TypeDescription == "AXS BPON ONT" && x.ModelDescription == "ONT1000M Phone Port"), unitAddr, "ACTIVE"),
                NewEquipment("MRCC00181AB9P03", EquipmentModels().Single(x=>x.TypeDescription == "AXS BPON ONT" && x.ModelDescription == "ONT1000M Phone Port"), unitAddr, "ACTIVE"),
                NewEquipment("MRCC00181AB9P04", EquipmentModels().Single(x=>x.TypeDescription == "AXS BPON ONT" && x.ModelDescription == "ONT1000M Phone Port"), unitAddr, "ACTIVE"),
                NewEquipment("M90937ZA8275", EquipmentModels().Single(x=>x.TypeDescription == "GI Digital" && x.ModelDescription == "QIP2500/ETHER"), "0000050810829002", "ACTIVE")
            };
            equip.ForEach(x => x.LocationId = loc.ID);

            //Services
            var svcs = new ServiceCollection
            {
                new Service { ClassName = "DATA - FTTH", Name = "F35M35M", Description = "35M DOWN 35M UP" },
                new Service { ClassName = "ONT PORT", Name = "MOCA", Description = "MOCA PORT" },
                new Service { ClassName = "VIDEO - BASICS", Name = "FIOS", Description = "FIOS VIDEO SERVICE" },
                new Service { ClassName = "VIDEO - BUNDLE/MISC", Name = "FIDS1", Description = "DOWNSTREAM PATH" },
                new Service { ClassName = "VIDEO - BUNDLE/MISC", Name = "FIVOD", Description = "VIDEO ON DEMAND SERV" },
                new Service { ClassName = "VIDEO - TIERS", Name = "FIES1", Description = "FIOS TV ESSENTIALS" },
                new Service { ClassName = "VIDEO - TIERS", Name = "FIHDS", Description = "HIGH DEFINITION -TRK" },
                new Service { ClassName = "VIDEO - TIERS", Name = "FIPR1", Description = "FIOS TV PREMIER" },
                new Service { ClassName = "VIDEO - TIERS", Name = "FIPR5", Description = "FIOS TV PREM ENH BIZ" },
                new Service { ClassName = "VOICE", Name = "VOICE", Description = "FTTH VOICE SERVICE" },
            };

            //ServiceProfiles
            var vsps = new List<ServiceProfile>
            {
                NewVoiceServiceProfile("4258818771", 1, 413, "MRCC00181AB9P01"),
                NewVoiceServiceProfile("4258699232", 1, 414, "MRCC00181AB9P02")
            };

            //Account
            var acct = new Account
            {
                AcctContactEmail = null,
                AcctContactName = null,
                AcctContactPhone = null,
                Email = null,
                Location = loc,
                Equipment = equip,
                ID = null,
                Name = null,
                PIN = null,
                PinRequired = false,
                PPVCap = "1.00",
                PPVEnabled = true,
                PPVPrivilege = "2",
                PPVResetDay = "15",
                ServiceEnabled = true,
                ServiceProfiles = vsps,
                Services = svcs
            };

            var sub = new Subscriber
            {
                ID = "370002312079",
                Name = "KIKUYA JAPANESE RESTAURAN",
                SubContactEmail = "*****@*****.**",
                SubContactPhone = "4258818771",
                CustomFields = new List<CustomField>
                {
                    new CustomField{Label ="Service_ID", Value=""},
                    new CustomField{Label = "PCAN", Value="F274112844"},
                    new CustomField{Label = "IP_TYPE", Value="DYNAMIC"},
                    new CustomField{Label = "Sub_WTN", Value=""},
                },
                Accounts = new List<Account> { acct }
            };
            return sub;
        }