public void BelongsTo() { var repository = new BinaryAnswerRepository(mSession); var form = new Form(); repository.CreateFor(form); Assert.AreEqual(11, form.BinaryAnswers.Where(b => b.BelongsTo(Stage.Pre)).Count()); }
public void CreateFor() { var repository = new BinaryAnswerRepository(mSession); var form = new Form(); repository.CreateFor(form); var expectedAnswerCount = 51; Assert.AreEqual(expectedAnswerCount, form.BinaryAnswers.Count); }