Exemple #1
0
        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);

            }
        }
Exemple #2
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);
     }
 }