Created
January 31, 2017 08:15
-
-
Save tarikguney/789278446392d237ad4607a45e7020a0 to your computer and use it in GitHub Desktop.
Account Creator Used in Main Method For Medium
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
public class Program{ | |
public static void Main(string[] args){ | |
AccountCreator accountCreator = new AccountCreator(new DatabaseAccountChecker()); | |
var accountInfo = GetAccountInfoFromSomewhere(); | |
var result = accountCreator.TryCreateAccount(accountInfo); | |
Console.WriteLine("Account Creation was succesfull? " + result); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment