public void ServiceIntegrationTest() { //Arrange const string hostName = "https://app.getswift.co/api/v2/deliveries"; //TODO: Add to configuration SwiftRestClient client = new SwiftRestClient(new RestSharp.RestClient(hostName)); //Act var results = client.Execute(hostName, new RestRequest()); //Assert Assert.IsNotNull(results); Assert.AreEqual(results.StatusCode, HttpStatusCode.OK); Assert.AreNotEqual(results.Content, string.Empty); }
public void SwiftRestClientExecuteWithNullParamTest() { //Act testSubject.Execute(null, new RestRequest()); }