-
-
Save coqmo5/d7f99301e2fbd3a7c1de4c0b4d7d05cf to your computer and use it in GitHub Desktop.
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
class MainCaller | |
{ | |
private IValidator _validator; | |
public MainCaller(IValidator validator) | |
{ | |
_validator = validator; | |
} | |
public int ValidateAndMultiply(int multiplier) | |
{ | |
int result = validator.Validate(); | |
return result * multiplier; | |
} | |
} |
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
class MainCaller | |
{ | |
public int ValidateAndMultiply(int param1, string param2, int multiplier) | |
{ | |
ValidatorClass validator = new ValidatorClass(param1, param2); | |
int result = validator.Validate(); | |
return result * multiplier; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment