Example #1
0
        public MethodEnvironment(ClassEnvironment classEnv,
                                 [CallerMemberName] string memberName = "",
                                 [CallerLineNumber] int envLineNumber = 0)
        {
            this.classEnv              = classEnv;
            this.memberName            = memberName;
            lineNumberToUseIfException = envLineNumber;

            loggedLinqSql = new List <string>();
            loggedDelegateDecompilerSql = new List <string>();

            Db = new EfTestDbContext();
            Db.Database.Log = LogEfSql;               //capture the sql for the linq part
        }
        public MethodEnvironment(ClassEnvironment classEnv,
                                  [CallerMemberName] string memberName = "",
                                  [CallerLineNumber] int envLineNumber = 0)
        {
            this.classEnv = classEnv;
            this.memberName = memberName;
            lineNumberToUseIfException = envLineNumber;

            loggedLinqSql = new List<string>();
            loggedDelegateDecompilerSql = new List<string>();

            Db = new EfTestDbContext();
            Db.Database.Log = LogEfSql;               //capture the sql for the linq part
        }
Example #3
0
 public void SetUpFixture()
 {
     classEnv = new ClassEnvironment();
 }