Created
January 22, 2021 15:48
-
-
Save nosavvy33/eb6b8263ea835b9f44367812212b4663 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 in Services\ConsolePrinter\IPrinter | |
| public interface IPrinter | |
| { | |
| void PrintToConsole(int Result); | |
| // this was added | |
| void PingPong(); | |
| } | |
| // this in Services\ConsolePrinter\PrinterService | |
| public class PrinterService : IPrinter | |
| { | |
| public PrinterService() | |
| { | |
| System.Console.WriteLine("I am a new PrinterService"); | |
| } | |
| public void PrintToConsole(int Result) | |
| { | |
| System.Console.WriteLine("Result = "+Result); | |
| } | |
| // this was added | |
| public void PingPong() | |
| { | |
| System.Console.WriteLine("Ping Pong"); | |
| } | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment