Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit c4bbb23

Browse files
committed
move off deprecated APIs
1 parent c3f132f commit c4bbb23

File tree

5 files changed

+5
-6
lines changed

5 files changed

+5
-6
lines changed

tests/ServiceStack.Text.Tests/JsonTests/CamelCaseTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public class CamelCaseTests : TestBase
1212
[SetUp]
1313
public void SetUp()
1414
{
15-
JsConfig.EmitCamelCaseNames = true;
15+
JsConfig.TextCase = TextCase.CamelCase;
1616
}
1717

1818
[TearDown]

tests/ServiceStack.Text.Tests/JsonTests/JsonArrayObjectTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public void Can_parse_custom_AuthResponse()
115115
dto.PrintDump();
116116

117117
using (JsConfig.With(new Config {
118-
EmitLowercaseUnderscoreNames = true,
118+
TextCase = TextCase.SnakeCase,
119119
PropertyConvention = PropertyConvention.Lenient
120120
}))
121121
{

tests/ServiceStack.Text.Tests/StringConverterUtilsTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public static StringEnumerable ParseJsv(string value)
2828
{
2929
return new StringEnumerable
3030
{
31-
Items = value.To<List<string>>()
31+
Items = value.ConvertTo<List<string>>()
3232
};
3333
}
3434

tests/ServiceStack.Text.Tests/StructTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ public class Person
118118
[Test]
119119
public void Test_enum_overloads()
120120
{
121-
JsConfig<Person>.EmitCamelCaseNames = true;
121+
JsConfig<Person>.TextCase = TextCase.CamelCase;
122122
JsConfig.IncludeNullValues = true;
123123
JsConfig<PersonStatus>.SerializeFn = text => text.ToString().ToCamelCase();
124124

tests/ServiceStack.Text.Tests/UseCases/StripeGateway.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -680,8 +680,7 @@ public ConfigScope()
680680
jsConfigScope = JsConfig.With(new Config {
681681
DateHandler = DateHandler.UnixTime,
682682
PropertyConvention = PropertyConvention.Lenient,
683-
EmitLowercaseUnderscoreNames = true,
684-
EmitCamelCaseNames = false
683+
TextCase = TextCase.SnakeCase,
685684
});
686685

687686
holdQsStrategy = QueryStringSerializer.ComplexTypeStrategy;

0 commit comments

Comments
 (0)