public void AuthConstructor()
 {
     _client = new RESTDataAccess(new Authentication {
         UserName = "******", Password = "******"
     });
     Assert.IsInstanceOfType(typeof(Authentication), _client.Authentication);
 }
 public void DataSourceNameAndAuthConstructor()
 {
     _client = new RESTDataAccess ("datasource", new Authentication { UserName = "******", Password = "******" });
     Assert.IsInstanceOfType (typeof(Authentication), _client.Authentication);
     Assert.AreEqual ("datasource", _client.DataSourceName);
     Assert.AreEqual ("user", _client.Authentication.UserName);
     Assert.AreEqual ("pw", _client.Authentication.Password);
 }
 public void DataSourceNameAndAuthConstructor()
 {
     _client = new RESTDataAccess("datasource", new Authentication {
         UserName = "******", Password = "******"
     });
     Assert.IsInstanceOfType(typeof(Authentication), _client.Authentication);
     Assert.AreEqual("datasource", _client.DataSourceName);
     Assert.AreEqual("user", _client.Authentication.UserName);
     Assert.AreEqual("pw", _client.Authentication.Password);
 }
 public void Init()
 {
     _client = new RESTDataAccess ();
 }
 public void DataSourceNameConstructor()
 {
     _client = new RESTDataAccess ("datasource");
     Assert.AreEqual("datasource", _client.DataSourceName);
 }
 public void AuthConstructor()
 {
     _client = new RESTDataAccess (new Authentication { UserName = "******", Password = "******" });
     Assert.IsInstanceOfType (typeof(Authentication), _client.Authentication);
 }
 public void DataSourceNameConstructor()
 {
     _client = new RESTDataAccess("datasource");
     Assert.AreEqual("datasource", _client.DataSourceName);
 }
 public void Init()
 {
     _client = new RESTDataAccess();
 }