< Summary

Class:SVETA.API.IntegrationTest.Common.StringContentCreator
Assembly:SVETA.Api
File(s):/opt/dev/sveta_api_build/SVETA.Api/Helpers/StringContentCreator.cs
Covered lines:0
Uncovered lines:7
Coverable lines:7
Total lines:21
Line coverage:0% (0 of 7)
Covered branches:0
Total branches:0

Metrics

MethodLine coverage Branch coverage
CreateContent(...)0%100%

File(s)

/opt/dev/sveta_api_build/SVETA.Api/Helpers/StringContentCreator.cs

#LineLine coverage
 1using System.Net.Http;
 2using System.Text;
 3using System.Text.Unicode;
 4using Newtonsoft.Json;
 5using Newtonsoft.Json.Serialization;
 6
 7namespace SVETA.API.IntegrationTest.Common
 8{
 9    public static class StringContentCreator
 10    {
 11        public static StringContent CreateContent(object value)
 012        {
 013            var serializeSettings = new JsonSerializerSettings
 014            {
 015                ContractResolver = new CamelCasePropertyNamesContractResolver()
 016            };
 017            return new StringContent(JsonConvert.SerializeObject(value, serializeSettings), Encoding.UTF8, "application/
 018        }
 19
 20    }
 21}

Methods/Properties

CreateContent(...)