Ejemplo n.º 1
0
        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();
            }
        }
Ejemplo n.º 2
0
        public void ShowShouldClearAndDisplayUser()
        {
            _sut.Show();

            _console.Received(1).Clear();

            _console.Received(1).WriteLine("Welcome [email protected] choose a character to play:");
        }
Ejemplo n.º 3
0
        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();
 }