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.
- Loading branch information
Showing
17 changed files
with
538 additions
and
60 deletions.
There are no files selected for viewing
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
137 changes: 137 additions & 0 deletions
137
...ngGenerator.Test/MethodParameterSuggestion/MethodParameterSuggestionTestCases.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
26 changes: 26 additions & 0 deletions
26
....Test/MethodParameterSuggestion/TestCaseData/002_SuggestOuterMethodParametersAndLocal.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,26 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
using System.Collections.ObjectModel; | ||
|
||
namespace MappingGenerator.Test.MappingGenerator.TestCaseData | ||
{ | ||
public class TestMapper | ||
{ | ||
public static UserDTO Map(string firstName, string lastName, int age) | ||
{ | ||
var parent = new UserDTO(); | ||
Map2([||]); | ||
} | ||
|
||
public static UserDTO Map2(string firstName, string lastName, int age, UserDTO parent) | ||
{ | ||
|
||
} | ||
} | ||
|
||
public class UserDTO | ||
{ | ||
|
||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
...est/MethodParameterSuggestion/TestCaseData/003_SuggestOuterMethodParametersAndMembers.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,27 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
using System.Collections.ObjectModel; | ||
|
||
namespace MappingGenerator.Test.MappingGenerator.TestCaseData | ||
{ | ||
public class TestMapper | ||
{ | ||
private readonly UserDTO parent = new UserDTO(); | ||
|
||
public static UserDTO Map(string firstName, string lastName, int age) | ||
{ | ||
Map2([||]); | ||
} | ||
|
||
public static UserDTO Map2(string firstName, string lastName, int age, UserDTO parent) | ||
{ | ||
|
||
} | ||
} | ||
|
||
public class UserDTO | ||
{ | ||
|
||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
...rator.Test/MethodParameterSuggestion/TestCaseData/004_FallbackByTypeIfSingleCandidate.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,26 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
using System.Collections.ObjectModel; | ||
|
||
namespace MappingGenerator.Test.MappingGenerator.TestCaseData | ||
{ | ||
public class TestMapper | ||
{ | ||
public static UserDTO Map(string firstName, string lastName, int age) | ||
{ | ||
var firstParent = new UserDTO(); | ||
Map2([||]); | ||
} | ||
|
||
public static UserDTO Map2(string firstName, string lastName, int age, UserDTO parent) | ||
{ | ||
|
||
} | ||
} | ||
|
||
public class UserDTO | ||
{ | ||
|
||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
...t/MethodParameterSuggestion/TestCaseData/005_FallbackByTypeIfSingleCandidateInterface.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,29 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
using System.Collections.ObjectModel; | ||
|
||
namespace MappingGenerator.Test.MappingGenerator.TestCaseData | ||
{ | ||
public class TestMapper | ||
{ | ||
IUserDTO firstParent = new UserDTO(); | ||
|
||
public static UserDTO Map(string firstName, string lastName, int age) | ||
{ | ||
Map2([||]); | ||
} | ||
|
||
public static UserDTO Map2(string firstName, string lastName, int age, IUserDTO parent) | ||
{ | ||
|
||
} | ||
} | ||
|
||
public interface IUserDTO {} | ||
|
||
public class UserDTO:IUserDTO | ||
{ | ||
|
||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
...t/MethodParameterSuggestion/TestCaseData/006_FallbackByTypeIfSingleCandidateBaseClass.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,29 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
using System.Collections.ObjectModel; | ||
|
||
namespace MappingGenerator.Test.MappingGenerator.TestCaseData | ||
{ | ||
public class TestMapper | ||
{ | ||
EntityDTO firstParent = new UserDTO(); | ||
|
||
public static UserDTO Map(string firstName, string lastName, int age) | ||
{ | ||
Map2([||]); | ||
} | ||
|
||
public static UserDTO Map2(string firstName, string lastName, int age, EntityDTO parent) | ||
{ | ||
|
||
} | ||
} | ||
|
||
public class EntityDTO {} | ||
|
||
public class UserDTO:EntityDTO | ||
{ | ||
|
||
} | ||
} |
Oops, something went wrong.