public void CreatePutRequest_ResultIsNotNull(string resourcePath) { // Arrange var requestFactory = new JSONRequestFactory(); // Act var result = requestFactory.CreatePutRequest(resourcePath); // Assert Assert.IsNotNull(result); }
public void CreatePutRequest_RequestFormatIsJSON() { // Arrange string resourcePath = "some/path"; var requestFactory = new JSONRequestFactory(); // Act var result = requestFactory.CreatePutRequest(resourcePath); // Assert Assert.AreEqual(DataFormat.Json, result.RequestFormat); }
public void CreatePutRequest_MethodIsPut() { // Arrange string resourcePath = "some/path"; var requestFactory = new JSONRequestFactory(); // Act var result = requestFactory.CreatePutRequest(resourcePath); // Assert Assert.AreEqual(Method.PUT, result.Method); }