public void Service_Supports_Parameterless_Constructor() { var service = new ForrstService(); Assert.AreEqual("http://forrst.com/api", service.ApiUri); Assert.AreEqual("v2", service.VersionPath); Assert.AreEqual("forrest.net", service.UserAgent); }
public void Service_Supports_Optional_Constructor_Parameters() { var service = new ForrstService(userAgent:"test agent", versionPath:"path", apiUri:"http://test/"); Assert.AreEqual("http://test/", service.ApiUri); Assert.AreEqual("path", service.VersionPath); Assert.AreEqual("test agent", service.UserAgent); }