public void Simple_inheritance_test()
 {
     TodoItem item = new SpecialTodoItem() {Title = "Go fishing"};
     var clone = Serializer.DeepClone(item);
     Assert.IsInstanceOf<SpecialTodoItem>(clone);
     Assert.AreEqual(item.Title, clone.Title);
     Assert.AreEqual(item.Id, clone.Id);
 }
Exemple #2
0
        public Guid AddSpecialItem(string title)
        {
            var item = new SpecialTodoItem {
                Title = title
            };

            Items.Add(item.Id, item);
            return(item.Id);
        }
 public Guid AddSpecialItem(string title)
 {
     var item = new SpecialTodoItem { Title = title };
     Items.Add(item.Id, item);
     return item.Id;
 }