public void AddTimeline_CEtoCE()
        {
            // Start date is greater than end date.
            string startDate = "100";
            string endDate = "10";

            tcPageObj = new TimelineControllerComponent(Driver);
            if (tcPageObj.Create(startDate, CE, endDate, CE) == true)
            {
                timelinesAdded++;
                Assert.Fail("Added timeline from " + startDate + " CE to " + endDate + " CE.");
            }

            // Start date is lower than end date
            startDate = "10";
            endDate = "100";

            tcPageObj = new TimelineControllerComponent(Driver);
            if (tcPageObj.Create(startDate, CE, endDate, CE) == false)
                Assert.Fail("Can't add timeline from " + startDate + " CE to " + endDate + " CE.");

            timelinesAdded++;

            // Start date and end date are the same.
            startDate = "50";
            endDate = "50";

            tcPageObj = new TimelineControllerComponent(Driver);
            if (tcPageObj.Create(startDate, CE, endDate, CE) == true)
            {
                timelinesAdded++;
                Assert.Fail("Added timeline from " + startDate + " CE to " + endDate + " CE.");
            }
        }
        public void AddTimeline_BCEtoCE_NegativeStartDate()
        {
            // Modulus of start date is lower than end date.
            string startDate = "-10";
            string endDate = "100";

            tcPageObj = new TimelineControllerComponent(Driver);
            if (tcPageObj.Create(startDate, BCE, endDate, CE) == true)
            {
                timelinesAdded++;
                Assert.Fail("Added timeline from " + startDate + " BCE to " + endDate + " CE.");
            }

            // Modulus of start and end dates are equal.
            startDate = "-10";
            endDate = "10";

            tcPageObj = new TimelineControllerComponent(Driver);
            if (tcPageObj.Create(startDate, BCE, endDate, CE) == true)
            {
                timelinesAdded++;
                Assert.Fail("Added timeline from " + startDate + " BCE to " + endDate + " CE.");
            }

            // Modulus of start date is greater than end date.
            startDate = "-100";
            endDate = "10";

            tcPageObj = new TimelineControllerComponent(Driver);
            if (tcPageObj.Create(startDate, BCE, endDate, CE) == true)
            {
                timelinesAdded++;
                Assert.Fail("Added timeline from " + startDate + " BCE to " + endDate + " CE.");
            }
        }
        public void AddTimeline_BCEtoCE_PositiveDates()
        {
            // Start date in BCE is lower than end date in CE.
            string startDate = "10";
            string endDate = "100";

            tcPageObj = new TimelineControllerComponent(Driver);
            if (tcPageObj.Create(startDate, BCE, endDate, CE) == false)
                Assert.Fail("Can't add timeline from " + startDate + " BCE to " + endDate + " CE.");

            //New timeline was added
            timelinesAdded++;

            // Start date in BCE is equal to end date in CE.
            startDate = "10";
            endDate = "10";

            tcPageObj = new TimelineControllerComponent(Driver);
            if (tcPageObj.Create(startDate, BCE, endDate, CE) == false)
                Assert.Fail("Can't add timeline from " + startDate + " BCE to " + endDate + " CE.");

            //New timeline was added
            timelinesAdded++;

            // Start date in BCE is greater than end date in CE.
            startDate = "100";
            endDate = "10";

            tcPageObj = new TimelineControllerComponent(Driver);
            if (tcPageObj.Create(startDate, BCE, endDate, CE) == false)
                Assert.Fail("Can't add timeline from " + startDate + " BCE to " + endDate + " CE.");

            //New timeline was added
            timelinesAdded++;
        }
        public void AddTimelineExhibit_CEtoCETimeline()
        {
            // Exhibit's date is BCE and higher, than start and end date of timeline.
            string startDate = "10";
            string endDate = "100";
            string contentDate = "110";

            tcPageObj = new TimelineControllerComponent(Driver);
            if (tcPageObj.Create(startDate, CE, endDate, CE) == false)
                Assert.Fail("Can't add timeline from " + startDate + " CE to " + endDate + " CE.");

            timelinesAdded++;

            ecPageObj = new ExhibitControllerComponent(Driver);
            if (ecPageObj.Create(contentDate, BCE) == false)
                Assert.Fail("Can't add exhibit " + contentDate + " BCE.");

            exhibitsAdded++;

            tecPageObj = new TimelineExhibitControllerComponent(Driver);
            if (tecPageObj.Create() == true)
            {
                timelineExhibitsAdded++;
                Assert.Fail("Added exhibit " + contentDate + " BCE to timeline from " + startDate + " CE to " + endDate + " CE.");
            }

            RemoveExhibit();

            // Exhibit's date is BCE and between start and end date of timeline.
            contentDate = "50";

            ecPageObj = new ExhibitControllerComponent(Driver);
            if (ecPageObj.Create(contentDate, BCE) == false)
                Assert.Fail("Can't add exhibit " + contentDate + " BCE.");

            exhibitsAdded++;

            tecPageObj = new TimelineExhibitControllerComponent(Driver);
            if (tecPageObj.Create() == true)
            {
                timelineExhibitsAdded++;
                Assert.Fail("Added exhibit " + contentDate + " BCE to timeline from " + startDate + " CE to " + endDate + " CE.");
            }

            RemoveExhibit();

            // Exhibit's date is BCE and lower than start and end dates of timeline.
            contentDate = "9";

            ecPageObj = new ExhibitControllerComponent(Driver);
            if (ecPageObj.Create(contentDate, BCE) == false)
                Assert.Fail("Can't add exhibit " + contentDate + " BCE.");

            exhibitsAdded++;

            tecPageObj = new TimelineExhibitControllerComponent(Driver);
            if (tecPageObj.Create() == true)
            {
                timelineExhibitsAdded++;
                Assert.Fail("Added exhibit " + contentDate + " BCE to timeline from " + startDate + " CE to " + endDate + " CE.");
            }

            RemoveExhibit();

            // Exhibit's date is CE and lower than end and start dates of timeline.
            contentDate = "9";

            ecPageObj = new ExhibitControllerComponent(Driver);
            if (ecPageObj.Create(contentDate, CE) == false)
                Assert.Fail("Can't add exhibit " + contentDate + " CE.");

            exhibitsAdded++;

            tecPageObj = new TimelineExhibitControllerComponent(Driver);
            if (tecPageObj.Create() == true)
            {
                Assert.Fail("Added " + contentDate + " CE to timeline from " + startDate + " CE to " + endDate + " CE.");
                timelineExhibitsAdded++;
            }

            RemoveExhibit();

            // Exhibit's date is CE and greater than end and start dates of timeline.
            contentDate = "110";

            ecPageObj = new ExhibitControllerComponent(Driver);
            if (ecPageObj.Create(contentDate, CE) == false)
                Assert.Fail("Can't add exhibit " + contentDate + " CE.");

            exhibitsAdded++;

            tecPageObj = new TimelineExhibitControllerComponent(Driver);
            if (tecPageObj.Create() == true)
            {
                Assert.Fail("Added " + contentDate + " CE to timeline from " + startDate + " CE to " + endDate + " CE.");
                timelineExhibitsAdded++;
            }

            RemoveExhibit();

            // Exhibit's date is CE and between end and start dates of timeline.
            contentDate = "50";

            ecPageObj = new ExhibitControllerComponent(Driver);
            if (ecPageObj.Create(contentDate, CE) == false)
                Assert.Fail("Can't add exhibit " + contentDate + " CE.");

            exhibitsAdded++;

            tecPageObj = new TimelineExhibitControllerComponent(Driver);
            if (tecPageObj.Create() == false)
                Assert.Fail("Can't add " + contentDate + " CE to timeline from " + startDate + " CE to " + endDate + " CE.");

            timelineExhibitsAdded++;

            RemoveExhibit();
        }