Example #1
0
        public static Idol CreateDummyIdol()
        {
            IdolRegistration taeyeon = new IdolRegistration();

            taeyeon.Name     = "Taeyeon";
            taeyeon.FullName = "Kim Taeyeon";
            taeyeon.Gender   = Gender.Female;
            taeyeon.DOB      = new DateTime(1989, 3, 9);

            return(CreateIdol(taeyeon));
        }
Example #2
0
        private static Idol CreateIdolSkeleton(IdolRegistration registration)
        {
            //Verify the registration
            Registar.Validate(registration);

            Idol skeleton = new Idol(registration.Name, registration.FullName, registration.Gender, registration.DOB);

            skeleton.Status = IdolStatus.Trainee;

            return(skeleton);
        }
Example #3
0
        public static Idol CreateIdol(IdolRegistration registration)
        {
            Idol newIdol = CreateIdolSkeleton(registration);

            newIdol.VisualRating  = new Rating();
            newIdol.SingingRating = new Rating();
            newIdol.DancingRating = new Rating();
            newIdol.SocialRating  = new Rating();

            return(newIdol);
        }
Example #4
0
        public static Idol CreateIdol(IdolRegistration registration, IdolReportCard reportCard)
        {
            Idol newIdol = CreateIdolSkeleton(registration);

            //Verify the report card
            //TODO

            newIdol.Potential = reportCard.Potential;

            newIdol.VisualRating  = reportCard.VisualRating;
            newIdol.SingingRating = reportCard.SingingRating;
            newIdol.DancingRating = reportCard.DancingRating;
            newIdol.SocialRating  = reportCard.SocialRating;

            return(newIdol);
        }
Example #5
0
 public static void Validate(IdolRegistration registration)
 {
     AssertIsNotNullOrWhitespace(registration.Name);
     AssertIsNotNullOrWhitespace(registration.FullName);
     AssertIsInThePast(registration.DOB);
 }