public void Create() { Destroy(); // Checks preconditions MockDatabaseProvider.Create(Description.ConnectionInfo); foreach (var schema in Description.Schemas) { if (schema.ScriptType != ScriptType.Runnable) { throw new ArgumentException("Mock database only support the 'Runnable' ScriptType", "ScriptType"); } schema.Run(Description.ConnectionInfo); } }
public void Destroy() { VerifyProperties(); MockDatabaseProvider.Destroy(Description.ConnectionInfo); }