예제 #1
0
        public void SetUp()
        {
            client = new Client(ConfigurationManager.AppSettings["username"]);
            client.SetPasswordHash(ConfigurationManager.AppSettings["password"]);

            proxy = new ProxyHTTP(ConfigurationManager.AppSettings["baseUrl"]);

            hlrFactory = new HLRFactory(client, proxy);

            validTestNumber = ConfigurationManager.AppSettings["validTestNumber"];
        }
예제 #2
0
        public void SetUp()
        {
            client = new Client(ConfigurationManager.AppSettings["username"]);
            client.SetPasswordHash(ConfigurationManager.AppSettings["password"]);

            proxy = new ProxyHTTP(ConfigurationManager.AppSettings["baseUrl"]);

            smsFactory = new SMSFactory(client, proxy);
            senderFactory = new SenderFactory(client, proxy);
            userFactory = new UserFactory(client, proxy);

            contactsFactory = new ContactsFactory(client, proxy);

            var clientLegacy = new Client(ConfigurationManager.AppSettings["usernameOldPhonebook"]);
            clientLegacy.SetPasswordHash(ConfigurationManager.AppSettings["passwordOldPhonebook"]);
            phonebookFactory = new PhonebookFactory(clientLegacy, proxy);

            subUserName = ConfigurationManager.AppSettings["subUserName"];
            validTestNumber = ConfigurationManager.AppSettings["validTestNumber"];
        }