Contenido en JSON
Inheritance: System.Net.Http.StringContent
        public void Creates_content_with_default_serialization_settings()
        {
            // arrange
            var dummy = Dummy.GetDummy();

            // act
            var sut = new JsonContent(dummy);

            // assert
            var json = sut.ReadAsStringAsync().Result;
            var restored = JsonConvert.DeserializeObject<Dummy>(json);
            Assert.Equal(dummy.Bool, restored.Bool);
            Assert.Equal(dummy.DateTime, restored.DateTime);
            Assert.Equal(dummy.Double, restored.Double);
            Assert.Equal(dummy.Int, restored.Int);
            Assert.Equal(dummy.Long, restored.Long);
            Assert.Equal(dummy.String, restored.String);
        }
 public void Sut_should_contains_ContentType_header_with_application_json(JsonContent sut)
 {
     // assert
     Assert.Equal("application/json", sut.Headers.ContentType.MediaType);
 }