Пример #1
0
        public void CreatePutRequest_ResultIsNotNull(string resourcePath)
        {
            // Arrange
            var requestFactory = new JSONRequestFactory();

            // Act
            var result = requestFactory.CreatePutRequest(resourcePath);

            // Assert
            Assert.IsNotNull(result);
        }
Пример #2
0
        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);
        }
Пример #3
0
        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);
        }