public void Post_ValidPOSTRequestDataSupplied_SendRequestSendMethodIsCalled()
        {
            var proxy = new ServiceProxy(_cloudId, _accessKey, _secretKey, _apiHost, new ServiceProxyUtility(), _serviceRequest);

            proxy.Post("videos.json", new Dictionary<string, string>
                {
                    { "some_parameter", "some_value" },
                    { "another_parameter", "another_value" }
                });

            _serviceRequest.AssertWasCalled(req => req.Send());
        }
        public void Post_FileDataSupplied_ServiceRequestPopulatedWithFileData()
        {
            var proxy = new ServiceProxy(_cloudId, _accessKey, _secretKey, _apiHost, new ServiceProxyUtility(), _serviceRequest);
            byte[] file = new byte[8];
            string fileName = "somefile.jpg";

            proxy.Post("videos.json", new Dictionary<string, string>
                {
                    { "some_parameter", "some_value" },
                    { "another_parameter", "another_value" }
                }, file, fileName);

            Assert.AreEqual(file, _serviceRequest.File);
            Assert.AreEqual(fileName, _serviceRequest.FileName);
        }