Exemplo n.º 1
0
 public void BaseUri()
 {
     var config = new HttpConfiguration(new Uri("http://happy.ca/"), "", HttpRequest.Get);
     var ex = Assert.Throws<ArgumentException>(()=>config.ValidateBase());
     Assert.AreEqual("Route", ex.Message);
 }
Exemplo n.º 2
0
 public void Base()
 {
     var config = new HttpConfiguration(new Uri("http://happy.ca/"), "happy", HttpRequest.Get);
     config.ValidateBase();
 }