Exemplo n.º 1
0
 public void Adding_Element_To_Dictionary_Adds_Correct_Element_To_Dictionary()
 {
     TODOListElement tempElement = new TODOListElement{Title="Test Temp", Details="Details Temp"};
     testList.AddElement(tempElement);
     TODOListElement secondTempElement = testList.getElement(tempElement.getMyId());
     Assert.AreEqual(tempElement, secondTempElement);
 }
Exemplo n.º 2
0
 public void AddElement(TODOListElement element)
 {
     ElementsTODO.Add(element.getMyId(),element);
 }
Exemplo n.º 3
0
 public void AddElement(string itemName, string itemDesription)
 {
     TODOListElement tempElement = new TODOListElement { Details = itemDesription, Title = itemName };
     ElementsTODO.Add(tempElement.getMyId(), tempElement);
 }