public void IsActiveIsFalse()
        {
            var item     = new ActivityProjectionItem();
            var viewItem = new ProjectionViewItem(item, null);

            Assert.That(viewItem.IsActive, Is.False);
        }
Beispiel #2
0
        public void DefaultConstructorInitializesToDefaultValues()
        {
            var item = new ActivityProjectionItem();

            Assert.That(item.Name, Is.Null);
            Assert.That(item.DueDate, Is.EqualTo(DateTime.MinValue));
        }
Beispiel #3
0
        public void MainConstructorInitializesToPassedValues()
        {
            string   name    = "The Name";
            DateTime dueDate = new DateTime(2017, 5, 13);
            var      item    = new ActivityProjectionItem(name, dueDate);

            Assert.That(item.Name, Is.EqualTo(name));
            Assert.That(item.DueDate, Is.EqualTo(dueDate));
        }
        public void DateSameAsActivityItemDueDate()
        {
            DateTime date = DateTime.Now;
            var      item = new ActivityProjectionItem()
            {
                DueDate = date
            };
            var viewItem = new ProjectionViewItem(item, null);

            Assert.That(viewItem.Date, Is.EqualTo(date));
        }
        public void NameSameAsItemName()
        {
            string name = "Test Activity";
            var    item = new ActivityProjectionItem()
            {
                Name = name
            };
            var viewItem = new ProjectionViewItem(item, null);

            Assert.That(viewItem.Name, Is.EqualTo(name));
        }
Beispiel #6
0
 public ProjectionViewItem(ActivityProjectionItem projectionItem, Activity activity)
 {
     this._projectionItem = projectionItem;
     this.Activity        = activity;
 }