public void WhenICallUploadResourcePost()
 {
     var fileInfo = new FileInfo(_filePath);
     using (var file = new MemoryFile(File.Open(_filePath, FileMode.Open), "image/jpeg", fileInfo.Name))
     {
         _response = _client.Upload.Post(new UploadRequest
         {
             Item = file
         });
     }
     _uploadToken = _response.Item.Token;
 }
        public void GivenIHaveAFileToUpload()
        {
            var directoryInfo = Directory.GetParent(Directory.GetCurrentDirectory()).Parent;

            var filePath = Path.Combine(directoryInfo.FullName, "Picture.jpg");

            var fileInfo = new FileInfo(filePath);

            using (var file = new MemoryFile(File.Open(filePath, FileMode.Open), "image/jpeg", fileInfo.Name))
            {
                var response = _client.Upload.Post(new UploadRequest
                {
                    Item = file
                });

                _uploadToken = response.Item.Token;
            }
        }