Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 39757

Questions about problem solving and planning for a solution through software design.

0 votes

How to do dependency Injection and conditional object creation based on type?

Inject your IValidationServices into your CustomerValidationServiceFactory. GetStrategy should not be static. Inject CustomerValidationServiceFactory into your CustomerService. Use as approproiate.
smp7d's user avatar
  • 4,221
3 votes

Where should I place my interface?

A separate project would be best in this scenario. Though now it will contain just a single interface, it may grow. Normally this type of project is called something like "API". There is no reason tha …
smp7d's user avatar
  • 4,221
1 vote

Best Method of function parameter validation

Based on the comment "one of my goals is to remove the parameter validation from the function itself so that you can only have the actual function code that accomplishes the intended task without the …
smp7d's user avatar
  • 4,221