public void ActorBornLocation()
 {
     //create an instance of the class
     Actor NewActor = new Actor();
     //test the id of the movie
     string TestActorBornLocation = "Leicester";
     NewActor.BornLocation = TestActorBornLocation;
     //test to see if that exists
     Assert.AreEqual(NewActor.BornLocation, TestActorBornLocation);
 }
        public void ActorBornLocationExtremeMinimumLength()
        {
            Actor NewActor = new Actor();
            Boolean valid = false;
            int actorId = 1;
            string lastName = new string('A', Actor.textMidLength);
            string firstMidName = new string('A', Actor.textMidLength);
            DateTime dateOfBirth = new DateTime(1990, 07, 30);
            string bornName = new string('A', Actor.textMidLength);
            string bornLocation = new string('A', Actor.textExtremeMin);
            string liveLocation = new string('A', Actor.textMidLength);

            valid = NewActor.Valid(actorId, lastName, firstMidName, dateOfBirth, bornName, bornLocation, liveLocation);
        }
        public void ActorBornLocationMaximumMinusOne()
        {
            Actor NewActor = new Actor();
            Boolean valid = false;
            int actorId = 1;
            string lastName = new string('A', Actor.textMidLength);
            string firstMidName = new string('A', Actor.textMidLength);
            DateTime dateOfBirth = new DateTime(1990, 07, 30);
            string bornName = new string('A', Actor.textMidLength);
            string bornLocation = new string('A', Actor.textMaximumLength - 1);
            string liveLocation = new string('A', Actor.textMidLength);

            valid = NewActor.Valid(actorId, lastName, firstMidName, dateOfBirth, bornName, bornLocation, liveLocation);
            Assert.IsTrue(valid);
        }
        public void ActorLatestDatePlusOne()
        {
            Actor NewActor = new Actor();
            Boolean valid = false;
            int ActorId = 1;
            string lastName = new string('A', Actor.textMidLength);
            string firstMidName = new string('A', Actor.textMidLength);
            DateTime dateOfBirth = Actor.latestDate.AddDays(+1);
            string bornName = new string('A', Actor.textMidLength);
            string bornLocation = new string('A', Actor.textMidLength);
            string liveLocation = new string('A', Actor.textMidLength);

            valid = NewActor.Valid(ActorId, lastName, firstMidName, dateOfBirth, bornName, bornLocation, liveLocation);
        }
        public void ActorLastNameOk()
        {
            //create an instance of the class
            Actor NewActor = new Actor();

            string TestActorLastName = "Johnson";
            NewActor.LastName = TestActorLastName;
            //test to see if that exists
            Assert.AreEqual(NewActor.LastName, TestActorLastName);
        }
 public void ActorInstanceOK()
 {
     //create an instance of the class
     Actor NewActor = new Actor();
     //test to see if that exists
     Assert.IsNotNull(NewActor);
 }
        public void ActorID()
        {
            //create an instance of the class
            Actor NewActor = new Actor();

            Int32 TestActorId = 1;
            NewActor.ActorId = TestActorId;
            //test to see if that exists
            Assert.AreEqual(NewActor.ActorId, TestActorId);
        }
        public void ActorFirstNameOk()
        {
            //create an instance of the class
            Actor NewActor = new Actor();

            string TestActorFirstName = "Luke";
            NewActor.FirstMidName = TestActorFirstName;
            //test to see if that exists
            Assert.AreEqual(NewActor.FirstMidName, TestActorFirstName);
        }
        public void ActorEarliestDate()
        {
            Actor NewActor = new Actor();
            Boolean valid = false;
            int ActorId = 1;
            string lastName = new string('A', Actor.textMidLength);
            string firstMidName = new string('A', Actor.textMidLength);
            DateTime dateOfBirth = Actor.earliestDate;
            string bornName = new string('A', Actor.textMidLength);
            string bornLocation = new string('A', Actor.textMidLength);
            string liveLocation = new string('A', Actor.textMidLength);

            valid = NewActor.Valid(ActorId, lastName, firstMidName, dateOfBirth, bornName, bornLocation, liveLocation);
            Assert.IsTrue(valid);
        }
 public void ActorDateOfBirthOK()
 {
     Actor NewActor = new Actor();
     DateTime testDateOfBirth = new DateTime(1990, 07, 30);
     NewActor.DateOfBirth = testDateOfBirth;
     Assert.AreEqual(NewActor.DateOfBirth, testDateOfBirth);
 }