public void Execute(List <string> parameter) { RegistrationResult registrationResult = _userFileManager.Register(parameter[0], parameter[1], parameter[2]); switch (registrationResult) { case RegistrationResult.InvalidUsername: Console.WriteLine("Username already exists"); break; case RegistrationResult.NotMatchingPassword: Console.WriteLine("Passwords dont match"); break; case RegistrationResult.Success: Console.WriteLine("Done"); break; } }