Skip to content

Commit

Permalink
fix: integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
TimothyMakkison committed Jun 13, 2023
1 parent 0f0235f commit fb32535
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
Expand Up @@ -48,7 +48,7 @@
ImmutableArrayValue: null,
ImmutableQueueValue: [],
ImmutableStackValue: [],
EnumReverseStringValue:
EnumReverseStringValue:
},
NullableReadOnlyObjectCollection: [
{
Expand Down
Expand Up @@ -13,7 +13,7 @@ public static partial class DeepCloningMapper
public static partial global::Riok.Mapperly.IntegrationTests.Models.TestObject Copy(global::Riok.Mapperly.IntegrationTests.Models.TestObject src)
{
var target = new global::Riok.Mapperly.IntegrationTests.Models.TestObject(src.CtorValue, ctorValue2: src.CtorValue2)
{ IntInitOnlyValue = src.IntInitOnlyValue, RequiredValue = src.RequiredValue };
{IntInitOnlyValue = src.IntInitOnlyValue, RequiredValue = src.RequiredValue};
if (src.NullableFlattening != null)
{
target.NullableFlattening = Copy(src.NullableFlattening);
Expand Down Expand Up @@ -74,7 +74,6 @@ public static partial class DeepCloningMapper
target.EnumName = src.EnumName;
target.EnumRawValue = src.EnumRawValue;
target.EnumStringValue = src.EnumStringValue;
target.TupleValue = (A: src.TupleValue.A, src.TupleValue.Item2);
target.EnumReverseStringValue = src.EnumReverseStringValue;
target.DateTimeValueTargetDateOnly = src.DateTimeValueTargetDateOnly;
target.DateTimeValueTargetTimeOnly = src.DateTimeValueTargetTimeOnly;
Expand Down
Expand Up @@ -51,8 +51,7 @@ public static partial class StaticTestMapper
public static partial global::Riok.Mapperly.IntegrationTests.Dto.TestObjectDto MapToDtoExt(this global::Riok.Mapperly.IntegrationTests.Models.TestObject src)
{
var target = new global::Riok.Mapperly.IntegrationTests.Dto.TestObjectDto(DirectInt(src.CtorValue), ctorValue2: DirectInt(src.CtorValue2))
{ IntInitOnlyValue = DirectInt(src.IntInitOnlyValue), RequiredValue = DirectInt(src.RequiredValue) };
if (src.NullableFlattening != null)
{IntInitOnlyValue = DirectInt(src.IntInitOnlyValue), RequiredValue = DirectInt(src.RequiredValue)}; if (src.NullableFlattening != null)
{
target.NullableFlatteningIdValue = CastIntNullable(src.NullableFlattening.IdValue);
}
Expand Down Expand Up @@ -120,7 +119,7 @@ public static partial class StaticTestMapper
private static partial global::Riok.Mapperly.IntegrationTests.Dto.TestObjectDto MapToDtoInternal(global::Riok.Mapperly.IntegrationTests.Models.TestObject testObject)
{
var target = new global::Riok.Mapperly.IntegrationTests.Dto.TestObjectDto(DirectInt(testObject.CtorValue), ctorValue2: DirectInt(testObject.CtorValue2))
{ IntInitOnlyValue = DirectInt(testObject.IntInitOnlyValue), RequiredValue = DirectInt(testObject.RequiredValue) };
{IntInitOnlyValue = DirectInt(testObject.IntInitOnlyValue), RequiredValue = DirectInt(testObject.RequiredValue)};
if (testObject.NullableFlattening != null)
{
target.NullableFlatteningIdValue = CastIntNullable(testObject.NullableFlattening.IdValue);
Expand Down Expand Up @@ -197,7 +196,7 @@ public static partial class StaticTestMapper
public static partial global::Riok.Mapperly.IntegrationTests.Models.TestObject MapFromDto(global::Riok.Mapperly.IntegrationTests.Dto.TestObjectDto dto)
{
var target = new global::Riok.Mapperly.IntegrationTests.Models.TestObject(DirectInt(dto.CtorValue), ctorValue2: DirectInt(dto.CtorValue2))
{ IntInitOnlyValue = DirectInt(dto.IntInitOnlyValue), RequiredValue = DirectInt(dto.RequiredValue) };
{IntInitOnlyValue = DirectInt(dto.IntInitOnlyValue), RequiredValue = DirectInt(dto.RequiredValue)};
if (dto.NullableUnflattening != null)
{
target.NullableUnflatteningIdValue = CastIntNullable(dto.NullableUnflattening.IdValue);
Expand Down

0 comments on commit fb32535

Please sign in to comment.