Пример #1
0
        static void Main(string[] args)
        {
            Register test = new Register("roy", "Bru11", "*****@*****.**");
            Console.WriteLine("Gick registreringen igenom: {0}",test.Registered());

            Secretary score = new Secretary("Roy", 2.8);
            Console.WriteLine(score.ScoreString());
            Console.WriteLine(score.TeamScore());

            Console.WriteLine();
            Console.WriteLine("Skapa aktör");
            TestSecretary.newActor();
            Console.WriteLine();

            Console.WriteLine();
            Console.WriteLine("Skapa birgitta och ge henne poäng");
            TestRegister.newGymnast();
            Console.WriteLine();

            Console.WriteLine("\nTester av regestrering");
            TestRegister.TestConstructor();
            TestRegister.TestEmail();
            TestRegister.TestConstructor2();
            TestRegister.TestEmptyConstructor();

            Console.WriteLine();
            Console.WriteLine("\nTester av poäng");
            TestSecretary.TestPoints();
            TestSecretary.TestPoints2();
            TestSecretary.TestPoints3();
            //TestSecretary.TestPoints4();
        }
Пример #2
0
 public static void newActor()
 {
     Register reg = new Register("Berit", "pa55word", "*****@*****.**");
     Console.Write("Namn: {0} Lösen: {1} email:{2}", reg.Username, reg.Password, reg.Email);
 }