Exemple #1
0
        public LoggerTests()
        {
            context = new TestingContext();
            logger  = new Logger(context);

            context.RemoveRange(context.Set <Log>());
            context.SaveChanges();
        }
Exemple #2
0
        public QueryTests()
        {
            context = new TestingContext();
            select  = new Query <TestModel>(context.Set <TestModel>());

            context.RemoveRange(context.Set <TestModel>());
            context.Add(ObjectsFactory.CreateTestModel());
            context.SaveChanges();
        }