Example #1
0
        public IAppointmentBuilder Create()
        {
            var bld = new AppointmentBuilder();

            CreateJobQueue.Enqueue(bld);
            return(bld);
        }
Example #2
0
        public void Appointments_Test()
        {
            var now = DateTime.Now;

            var weihnachtenDef = new mko.Timeline.AppointmentBuilder();

            CreateWeihnachten(now, weihnachtenDef);

            var weihnachtenDef2 = new mko.Timeline.AppointmentBuilder();

            CreateWeihnachten(now, weihnachtenDef2);

            Assert.IsTrue(weihnachtenDef.Create().Equ(weihnachtenDef2.Create()));


            mko.Timeline.IAppointment w1 = weihnachtenDef.Create();

            Assert.AreEqual("DE", w1.Location.Country);
            Assert.IsTrue(w1.BeginDate.Equ(new mko.Timeline.Date(now.Year + 1, 12, 24)));
        }