| | | 1 | | using System.Net.Http; |
| | | 2 | | using System.Text; |
| | | 3 | | using System.Text.Unicode; |
| | | 4 | | using Newtonsoft.Json; |
| | | 5 | | using Newtonsoft.Json.Serialization; |
| | | 6 | | |
| | | 7 | | namespace SVETA.API.IntegrationTest.Common |
| | | 8 | | { |
| | | 9 | | public static class StringContentCreator |
| | | 10 | | { |
| | | 11 | | public static StringContent CreateContent(object value) |
| | 0 | 12 | | { |
| | 0 | 13 | | var serializeSettings = new JsonSerializerSettings |
| | 0 | 14 | | { |
| | 0 | 15 | | ContractResolver = new CamelCasePropertyNamesContractResolver() |
| | 0 | 16 | | }; |
| | 0 | 17 | | return new StringContent(JsonConvert.SerializeObject(value, serializeSettings), Encoding.UTF8, "application/ |
| | 0 | 18 | | } |
| | | 19 | | |
| | | 20 | | } |
| | | 21 | | } |