public void HasNext_and_returns_false_if_none_exists() { Form form1 = new Form { Name = "Form1" }; Form form2 = new Form { Name = "Form2" }; var repository = new FormRepository(mSession); repository.Insert(form1); repository.Insert(form2); Assert.IsFalse(repository.HasNext(form2.Id)); }
public void HasNext() { Form form1 = new Form { Name = "Form1" }; Form form2 = new Form { Name = "Form2" }; var repository = new FormRepository(mSession); repository.Insert(form1); repository.Insert(form2); Assert.IsTrue(repository.HasNext(form1.Id)); }