public override void Init()
        {
            base.Init();

            using (var context = new CountVonCountTestDbContext())
            {
                context.WordMetrics.AddRange(_expectedWordMetrics);
                context.SaveChanges();
            }
        }
Example #2
0
        private static void InitDb()
        {
            using (var context = new CountVonCountTestDbContext())
            {
                // Force DB initialisation using migration scripts
                context.Database.Initialize(true);
                ClearDb(context);

                context.SaveChanges();
            }
        }