public void TestRemovedPersonsShouldNoLongerBeFindable() { var workflow = new Workflow(); workflow.SavePerson(new Person() { Name = "Levi"}); workflow.RemovePerson("Levi"); Assert.IsNull(workflow.FindPerson("Levi")); }
public void TestSavedPersonShouldBeReturnedWithGetPerson() { var workflow = new Workflow(); workflow.SavePerson(new Person() { Name = "Alibaba", Age = 46 }); var person = workflow.FindPerson("Alibaba"); Assert.IsNotNull(person); Assert.AreEqual("Alibaba", person.Name); Assert.AreEqual(46, person.Age); }
public void TestFindPerson() { var workflow = new Workflow(); Assert.IsNull(workflow.FindPerson("Aliababa")); }