public void ShouldReturnRequestData() { using (var db = new SNAPDatabaseDataContext()) { var maxRequestId = db.SNAP_Requests.Max(x => x.pkId); var requestTexts = db.RetrieveRequestUserText(maxRequestId); foreach (var text in requestTexts) { Console.WriteLine(text.userText); } Assert.IsTrue(requestTexts.Count() > 0); } }
public void ShouldReturnNoRequestData() { using (var db = new SNAPDatabaseDataContext()) { var maxRequestId = db.SNAP_Requests.Max(x => x.pkId); var data = db.RetrieveRequestUserText(++maxRequestId); Assert.IsTrue(data.Count() == 0); } }