public Dictionary <Enums.ApmaxVersion, int> ReturnVersions() { Versions = _serviceReportV1.GetAPmaxServiceVersions(_loginInformation.LoginToken); var dictionary = new Dictionary <Enums.ApmaxVersion, int> { { Enums.ApmaxVersion.Voicemail, Versions.Voicemail }, { Enums.ApmaxVersion.Iptv, Versions.Iptv }, { Enums.ApmaxVersion.Subscriber, Versions.Subscriber }, { Enums.ApmaxVersion.CallingName, Versions.CallingName } }; return(dictionary); }
public SubscriberV3Service(EquipmentConnectionSetting setting, ServiceVersions serviceVersions) { _setting = setting; _versions = serviceVersions; //http://localhost:8731/Design_Time_Addresses/LoginService/ApAdmin/ var admin = new ApAdminClient("WSHttpBinding_IApAdmin", new EndpointAddress("http://" + setting.Ip + ":" + setting.Port + "/Design_Time_Addresses/LoginService/ApAdmin/")); //http://localhost:8731/Design_Time_Addresses/SubscriberServiceV3/SubscriberV3/ _subscriberService = new SubscriberServiceClient("WSHttpBinding_ISubscriberService3", new EndpointAddress("http://" + setting.Ip + ":" + setting.Port + "/Design_Time_Addresses/SubscriberServiceV3/SubscriberV3/")); _loginInformation = admin.LoginAdv(setting.CustomString1, setting.Username, setting.Password); }
public void TestInitialize() { var equipmentConnectionSetting = new EquipmentConnectionSetting { CustomInt1 = null, CustomString1 = "9056", EquipmentId = 6, Ip = "127.0.0.1", Password = "******", Port = 8731, Url = null, Username = "******" }; var serviceVersions = new ServiceVersions { Subscriber = 4 }; _subscriberV4Service = new SubscriberV4Service(equipmentConnectionSetting, serviceVersions); }