public ContactsFactory(Client client)
     : base(client)
 {
     ProxyHTTP proxyHttp = new ProxyHTTP("http://api.smsapi.pl/");
     proxyHttp.BasicAuthentication(client);
     Proxy(proxyHttp);
 }
        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"];
        }
        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"];
        }
 public void BasicAuthentication(Client client)
 {
     basicAuthentication = client;
 }
 public SenderFactory(Client client)
     : base(client)
 {
 }
 public HLRFactory(Client client, Proxy proxy)
     : base(client, proxy)
 {
 }
 public HLRFactory(Client client)
     : base(client)
 {
 }
 public PhonebookFactory(Client client, Proxy proxy)
     : base(client, proxy)
 {
 }
 public PhonebookFactory(Client client)
     : base(client)
 {
 }
 public SenderFactory(Client client, Proxy proxy)
     : base(client, proxy)
 {
 }
 public UserFactory(Client client)
     : base(client)
 {
 }
 public ContactsFactory(Client client, Proxy proxy)
     : base(client, proxy)
 {
     proxy.BasicAuthentication(client);
     Proxy(proxy);
 }