You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Change converter naming convention.
Previous naming convention: 'ConverterForXyz'
New naming convention: 'XyzConverter'
- Change data contract naming convention.
Previous naming convention: 'XyzDataContract'
New naming convention: 'XyzDTO'
- Move types into matching files
- Move initialization code to te bootstrapper.
The bootstrapper is now reponsible for initializing converters.
- Convert internal classes to public sealed.
This change is necessary to be able to initialize converters
from outside their containing assembly.
- Improve argument exception messages
When 'ArgumentException' (or a derivation) is thrown, the
message should say what is expected instead of what isn't.
- Replace boilerplate converter code with T4 templates
Where possible, T4 text templates and reflection are used
to automatically generate type converters for well-known
entities.
Resolves: Ruhrpottpatriot#7
See also: Ruhrpottpatriot#5
sliekens
added a commit
to sliekens/GW2.NET
that referenced
this issue
Sep 29, 2015
- Change converter naming convention.
Previous naming convention: 'ConverterForXyz'
New naming convention: 'XyzConverter'
- Change data contract naming convention.
Previous naming convention: 'XyzDataContract'
New naming convention: 'XyzDTO'
- Move types into matching files
- Move initialization code to te bootstrapper.
The bootstrapper is now reponsible for initializing converters.
- Convert internal classes to public sealed.
This change is necessary to be able to initialize converters
from outside their containing assembly.
- Improve argument exception messages
When 'ArgumentException' (or a derivation) is thrown, the
message should say what is expected instead of what isn't.
- Replace boilerplate converter code with T4 templates
Where possible, T4 text templates and reflection are used
to automatically generate type converters for well-known
entities.
- Add integration tests
Resolves: Ruhrpottpatriot#7
See also: Ruhrpottpatriot#5
[Moved from Codeplex: https://gw2dotnet.codeplex.com/workitem/1346]
While most of the library accepts dependencies as constructor parameters, there are a lot of constructor overloads that create their own objects.
This "technique" is called poor man's dependency injection. Code written like this is only acceptable in the top-level library (GW2NET.csproj).
When you see code like this, refactor it so that there is only 1 constructor that has parameters for every dependency.
Refactored without poor man's dependency injection:
StevenLiekens wrote May 27 at 4:24 PM
StevenLiekens wrote May 28 at 7:52 AM
The text was updated successfully, but these errors were encountered: