public void Show(bool test = false) { if (test) { return; } _console.WriteLine("·▄▄▄▄ ▄▄▌ "); _console.WriteLine("██· ██ ▄█▀▄ ██• "); _console.WriteLine("▐█▪ ▐█▌▐█▌.▐▌██ ▪ "); _console.WriteLine("██. ██ ▐█▌.▐▌▐█▌ ▄"); _console.WriteLine("▀▀▀▀▀• ▀█▄▀▪.▀▀▀ "); _console.WriteLine(""); _console.WriteLine("Login to proceed."); _console.Write("Enter email: "); var user = _console.ReadLine(); _console.WriteLine(""); _console.Write("Enter password: "******"Login failed! Press any key to close..."); _console.ReadLine(); } else { _console.WriteLine($"Welcome your ID is {_security.Identity.User.LocalId}!"); _characterView.Show(); } }
public void ShowShouldClearAndDisplayUser() { _sut.Show(); _console.Received(1).Clear(); _console.Received(1).WriteLine("Welcome [email protected] choose a character to play:"); }
private IClickableCharacterView CreateAndShowCharacterView(string path) { IClickableCharacterView characterView = null; var character = CreateCharacterView(path); if (character != null) { characterView = character.GetComponent <ClickableCharacterImage>(); if (characterView != null) { characterView.CharacterClicked += OnCharacterClicked; characterView.Show(); } } return(characterView); }
public void Run() { ShowCharacters(); _view.Show(); }