This repository has been archived by the owner on Jan 16, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix formatting for implicit conversion
- Loading branch information
1 parent
dce9a8a
commit 94e5909
Showing
13 changed files
with
176 additions
and
33 deletions.
There are no files selected for viewing
76 changes: 65 additions & 11 deletions
76
...nerator/MappingGenerator.Test/ExplicitConversions/ExplicitConversionTestCases.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
41 changes: 41 additions & 0 deletions
41
...ExplicitConversions/TestCaseData/004_ExplicitConversionForInvalidAssigmentInInitBlock.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace MappingGenerator.Test.ExplicitConversions.TestCaseData | ||
{ | ||
public class TestMapper | ||
{ | ||
public AddressDTO Address { get; set; } | ||
|
||
public UserDTO DoSomething() | ||
{ | ||
var addressEntity = new AddressEntity(); | ||
return new UserDTO{ | ||
Address = addressEntity | ||
} | ||
} | ||
} | ||
|
||
public class UserDTO{ | ||
public AddressDTO Address {get; set;} | ||
} | ||
|
||
public class AddressDTO | ||
{ | ||
public string FlatNo { get; set; } | ||
public string BuildtingNo { get; set; } | ||
public string Street { get; set; } | ||
public string ZipCode { get; set; } | ||
public string City { get; set; } | ||
} | ||
|
||
public class AddressEntity | ||
{ | ||
public string FlatNo { get; set; } | ||
public string BuildtingNo { get; set; } | ||
public string Street { get; set; } | ||
public string ZipCode { get; set; } | ||
public string City { get; set; } | ||
} | ||
} |
48 changes: 48 additions & 0 deletions
48
...itConversions/TestCaseData/004_ExplicitConversionForInvalidAssigmentInInitBlock_FIXED.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace MappingGenerator.Test.ExplicitConversions.TestCaseData | ||
{ | ||
public class TestMapper | ||
{ | ||
public AddressDTO Address { get; set; } | ||
|
||
public UserDTO DoSomething() | ||
{ | ||
var addressEntity = new AddressEntity(); | ||
return new UserDTO{ | ||
Address = new AddressDTO() | ||
{ | ||
FlatNo = addressEntity.FlatNo, | ||
BuildtingNo = addressEntity.BuildtingNo, | ||
Street = addressEntity.Street, | ||
ZipCode = addressEntity.ZipCode, | ||
City = addressEntity.City | ||
} | ||
} | ||
} | ||
} | ||
|
||
public class UserDTO{ | ||
public AddressDTO Address {get; set;} | ||
} | ||
|
||
public class AddressDTO | ||
{ | ||
public string FlatNo { get; set; } | ||
public string BuildtingNo { get; set; } | ||
public string Street { get; set; } | ||
public string ZipCode { get; set; } | ||
public string City { get; set; } | ||
} | ||
|
||
public class AddressEntity | ||
{ | ||
public string FlatNo { get; set; } | ||
public string BuildtingNo { get; set; } | ||
public string Street { get; set; } | ||
public string ZipCode { get; set; } | ||
public string City { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters