public void Init()
 {
     c1 = new ClubMember(1, "Anders", "And", 15);
     c2 = new ClubMember(2, "Bjørn", "Borg", 30);
     c3 = new ClubMember(3, "Cristian", "Nielsen", 20);
     c4 = new ClubMember(4, "Kurt", "Nielsen", 33);
     c5 = new ClubMember(5, "Lis", "Sørnsen", 18);
 }
        public void TestClubMemberCompareTo()
        {
            ClubMember cm1, cm2, cm3, cm4;

            cm1           = new ClubMember();
            cm2           = new ClubMember();
            cm3           = new ClubMember();
            cm4           = new ClubMember();
            cm1.FirstName = "A";
            cm2.FirstName = "B";
            cm3.FirstName = "C";
            cm4.FirstName = "C";

            Assert.IsTrue(cm1.CompareTo(cm2) < 0);
            Assert.IsTrue(cm3.CompareTo(cm2) > 0);
            Assert.IsTrue(cm2.CompareTo(cm3) < 0);
            Assert.AreEqual(cm3.CompareTo(cm4), 0);
        }
 public void Initialize()
 {
     p1 = new ClubMember {
         Id = 1, FirstName = "Farrand", LastName = "Semkins", Gender = Gender.Female, Age = 77
     };
     p2 = new ClubMember {
         Id = 2, FirstName = "Trev", LastName = "Quail", Gender = Gender.Male, Age = 84
     };
     p3 = new ClubMember {
         Id = 3, FirstName = "Dani", LastName = "Ballister", Gender = Gender.Female, Age = 76
     };
     p4 = new ClubMember {
         Id = 4, FirstName = "Hyacinthie", LastName = "Mish", Gender = Gender.Female, Age = 70
     };
     p5 = new ClubMember {
         Id = 5, FirstName = "Jarib", LastName = "Boustred", Gender = Gender.Male, Age = 32
     };
     p6 = new ClubMember {
         Id = 6, FirstName = "Erl", LastName = "Meeson", Gender = Gender.Male, Age = 62
     };
     p7 = new ClubMember {
         Id = 7, FirstName = "Aile", LastName = "Highman", Gender = Gender.Female, Age = 79
     };
     p8 = new ClubMember {
         Id = 8, FirstName = "Rheta", LastName = "Battelle", Gender = Gender.Female, Age = 42
     };
     p9 = new ClubMember {
         Id = 9, FirstName = "Olimpia", LastName = "Foulsham", Gender = Gender.Female, Age = 60
     };
     p10 = new ClubMember {
         Id = 10, FirstName = "Dagny", LastName = "Ilchenko", Gender = Gender.Male, Age = 34
     };
     p11 = new ClubMember {
         Id = 11, FirstName = "Davis", LastName = "Gilbride", Gender = Gender.Male, Age = 46
     };
     p12 = new ClubMember {
         Id = 12, FirstName = "Kamillah", LastName = "Bahls", Gender = Gender.Female, Age = 24
     };
     p13 = new ClubMember {
         Id = 13, FirstName = "Flore", LastName = "Ansley", Gender = Gender.Female, Age = 89
     };
     p14 = new ClubMember {
         Id = 14, FirstName = "Glad", LastName = "Clowser", Gender = Gender.Female, Age = 48
     };
     p15 = new ClubMember {
         Id = 15, FirstName = "Christian", LastName = "Congram", Gender = Gender.Female, Age = 33
     };
     p16 = new ClubMember {
         Id = 16, FirstName = "Tore", LastName = "Saggs", Gender = Gender.Male, Age = 28
     };
     p17 = new ClubMember {
         Id = 17, FirstName = "Vevay", LastName = "Klezmski", Gender = Gender.Female, Age = 43
     };
     p18 = new ClubMember {
         Id = 18, FirstName = "Bren", LastName = "Merrikin", Gender = Gender.Female, Age = 46
     };
     p19 = new ClubMember {
         Id = 19, FirstName = "Benoit", LastName = "Filler", Gender = Gender.Male, Age = 16
     };
     p20 = new ClubMember {
         Id = 20, FirstName = "Lucien", LastName = "Bottrell", Gender = Gender.Male, Age = 41
     };
     p21 = new ClubMember {
         Id = 21, FirstName = "Emmy", LastName = "Pechell", Gender = Gender.Male, Age = 61
     };
     p22 = new ClubMember {
         Id = 22, FirstName = "Merle", LastName = "Bennet", Gender = Gender.Female, Age = 42
     };
     p23 = new ClubMember {
         Id = 23, FirstName = "Solomon", LastName = "Sarrell", Gender = Gender.Male, Age = 61
     };
     p24 = new ClubMember {
         Id = 24, FirstName = "Shurlock", LastName = "Shreenan", Gender = Gender.Male, Age = 84
     };
     p25 = new ClubMember {
         Id = 25, FirstName = "Chadd", LastName = "Hanney", Gender = Gender.Male, Age = 80
     };
 }