I found a bit of code which im unsure about in this poorly documented project im on. To be honest I havent got a clue what is going here.
public void TestMethod(ISystemScriptingInterface system, ScriptEventArgs eventArgs)
{
var databaseScriptingInterface = system.GetInterface("database") as IDatabaseScriptingInterface;
if (databaseScriptingInterface == null)
{
throw system.GetException(LocalisedSystemText.InternalServerError(), "Database scripting interface was not found", "Test Class", "Running test method", " Scripting.DatabaseInterfaceNotFound");
}
if (databaseScriptingInterface != null)
{
}
}
Does any one know what is going on or can give me some good reading material to understand this better
Cheers.