Ejemplo n.º 1
0
 public void GetTotalRecordCount_WhenDbError_ThrowsException()
 {
     try
     {
         systemUnderTest = new DatabaseLogDbActions(string.Empty);
         systemUnderTest.GetTotalRecordCount();
         Assert.IsTrue(false, "An error was not thrown.");
     }
     catch
     {
         Assert.IsTrue(true);
     }
 }
Ejemplo n.º 2
0
        public void GetTotalRecordCount_WhenInvoked_ReturnsCorrectNumberOfRecords()
        {
            var result = systemUnderTest.GetTotalRecordCount();

            Assert.AreEqual(1597, result);
        }