Ejemplo n.º 1
0
        public void TestPutObject()
        {
            var stringRequest       = "object content";
            var jobId               = Guid.Parse("e5d4adce-e170-4915-ba04-595fab30df81");
            var offset              = 10L;
            var expectedQueryParams = new Dictionary <string, string>
            {
                { "job", "e5d4adce-e170-4915-ba04-595fab30df81" },
                { "offset", "10" }
            };

            MockNetwork
            .Expecting(HttpVerb.PUT, "/bucketName/object", expectedQueryParams, stringRequest)
            .Returning(HttpStatusCode.OK, stringRequest, _emptyHeaders)
            .AsClient
            .PutObject(new PutObjectRequest("bucketName", "object", jobId, offset, HelpersForTest.StringToStream(stringRequest)));
        }
Ejemplo n.º 2
0
 public Stream GetResponseStream()
 {
     return(HelpersForTest.StringToStream(_responseString));
 }