HasNext() public method

public HasNext ( int id ) : bool
id int
return bool
Esempio n. 1
0
        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));
        }
Esempio n. 2
0
        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));
        }