public void SaveExceptionToDatabase_WithNullTransaction_ThrowsException() { // Arrange var provider = new FakeAspNetSqlLoggingProvider(); // Act provider.Public_SaveExceptionToDatabase(null, new Exception(), 1, 1); }
public void Public_SaveExceptionToDatabase_WithNullException_ThrowsException() { // Arrange var provider = new FakeAspNetSqlLoggingProvider(); Exception invalidException = null; // To bad, we can't create a Transaction, but atleast we get code coverage. SqlTransaction invalidTransaction = null; // Act provider.Public_SaveExceptionToDatabase(invalidTransaction, invalidException, 1, 1); }