Sanity Checks: The Active Record Version

time to read 5 min | 907 words

Following my NHibernate Sanity Check, here is the Active Record version:

public class AR_Sanity_Checks : ActiveRecordModel

{

    public static void DoSanityCheck()

    {

        foreach (Type type in type2Model.Keys)

        {

            ActiveRecordMediator.SlicedFindAll(type, 0, 0, new Order[0]);

        }

    }

 

    public static void DoInsanityCheck()

    {

        //What, do I _LOOK_ crazy to you?

    }

}

This is not something that I tested, though, consider this notepad code.