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

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

            valid = NewDirector.Valid(DirectorId, lastName, firstMidName, dateOfBirth, bornName, bornLocation, liveLocation);
            Assert.IsTrue(valid);
        }
        public void DirectorLatestDatePlusOne()
        {
            Director NewDirector = new Director();
            Boolean valid = false;
            int DirectorId = 1;
            string lastName = new string('A', Director.textMidLength);
            string firstMidName = new string('A', Director.textMidLength);
            DateTime dateOfBirth = Director.latestDate.AddDays(+1);
            string bornName = new string('A', Director.textMidLength);
            string bornLocation = new string('A', Director.textMidLength);
            string liveLocation = new string('A', Director.textMidLength);

            valid = NewDirector.Valid(DirectorId, lastName, firstMidName, dateOfBirth, bornName, bornLocation, liveLocation);
        }
        public void DirectorLastNameOk()
        {
            //create an instance of the class
            Director NewDirector = new Director();

            string TestDirectorLastName = "Johnson";
            NewDirector.LastName = TestDirectorLastName;
            //test to see if that exists
            Assert.AreEqual(NewDirector.LastName, TestDirectorLastName);
        }
 public void DirectorInstanceOK()
 {
     //create an instance of the class
     Director NewDirector = new Director();
     //test to see if that exists
     Assert.IsNotNull(NewDirector);
 }
        public void DirectorID()
        {
            //create an instance of the class
            Director NewDirector = new Director();

            Int32 TestDirectorId = 1;
            NewDirector.DirectorId = TestDirectorId;
            //test to see if that exists
            Assert.AreEqual(NewDirector.DirectorId, TestDirectorId);
        }
        public void DirectorFirstNameOk()
        {
            //create an instance of the class
            Director NewDirector = new Director();

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

            valid = NewDirector.Valid(DirectorId, lastName, firstMidName, dateOfBirth, bornName, bornLocation, liveLocation);
            Assert.IsTrue(valid);
        }
 public void DirectorDateOfBirthOK()
 {
     Director NewDirector = new Director();
     DateTime testDateOfBirth = new DateTime(1990, 07, 30);
     NewDirector.DateOfBirth = testDateOfBirth;
     Assert.AreEqual(NewDirector.DateOfBirth, testDateOfBirth);
 }