public async Task Throws_HttpContentSerializationException_For_Invalid_Json(string json)
        {
            var content    = new StringContent(json);
            var serializer = new JsonHttpContentSerializer();

            Func <Task> testCode = async() => await serializer.DeserializeAsync(content, typeof(MockDto));

            await testCode.Should().ThrowAsync <HttpContentSerializationException>();
        }
        public async Task Deserializes_Object(string json)
        {
            var content      = new StringContent(json);
            var serializer   = new JsonHttpContentSerializer();
            var deserialized = await serializer.DeserializeAsync(content, typeof(MockDto));

            var expected = JsonConvert.DeserializeObject <MockDto>(json);

            deserialized.Should().BeEquivalentTo(expected);
        }