public void PostFileWithRequest_returns_the_same_date_as_normal_Put_with_JsonHttpClient() { var client = new JsonHttpClient(ListeningOn); using (var fileStream = new FileInfo("~/TestExistingDir/upload.html".MapProjectPlatformPath()).OpenRead()) { var request = new FileUpload { CreatedDate = new DateTime(2014, 1, 1, 1, 0, 0) }; var response = client.PostFileWithRequest <FileUploadResponse>( "/fileuploads", fileStream, "upload.html", request); Assert.That(response.CreatedDate, Is.EqualTo(request.CreatedDate).Within(TimeSpan.FromHours(1))); response = client.Put(request); Assert.That(response.CreatedDate, Is.EqualTo(request.CreatedDate).Within(TimeSpan.FromHours(1))); } }