예제 #1
0
        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);
            }
        }
예제 #2
0
        public void Destroy()
        {
            VerifyProperties();

            MockDatabaseProvider.Destroy(Description.ConnectionInfo);
        }