public void TestDbConnection() { ConnectionController conCtrl = new ConnectionController(); bool status = true; try { conCtrl.DbConnectionTest(); } catch (FaultException <DbConnectionError> exception) { Console.WriteLine(exception.Detail.Message); status = false; } Assert.IsTrue(status); }
public void TestConnection() { ConnectionController conCtrl = new ConnectionController(); conCtrl.DbConnectionTest(); }