Extract response exceptions
[smsapi-csharp.git] / smsapiTests / TestBase.cs
blob0ee72dc2b6cdee6d2ae21dbda10d3107099eefe1
1 using System;
2 using System.Configuration;
3 using Microsoft.VisualStudio.TestTools.UnitTesting;
4 using SMSApi.Api;
6 namespace smsapiTests;
8 public abstract class TestBase
10 protected IClient _client;
11 protected ProxyAddress _proxyAddress;
12 protected string _username;
13 protected string _validTestNumber;
15 [TestInitialize]
16 public virtual void SetUp()
18 _client = new ClientOAuth(ConfigurationManager.AppSettings["oauthToken"]);
20 _proxyAddress = (ProxyAddress)Enum.Parse(
21 typeof(ProxyAddress),
22 ConfigurationManager.AppSettings["addressType"]);
24 _validTestNumber = ConfigurationManager.AppSettings["validTestNumber"];