Esempio n. 1
0
        public void Pregenerated_views_are_found_for_Code_First_model()
        {
            using (var context = new PregenContext())
            {
                var _ = context.Blogs.ToString(); // Trigger view loading

                Assert.True(PregenContextViews.View0Accessed);
                Assert.True(PregenContextViews.View1Accessed);
            }
        }
Esempio n. 2
0
        public void Pregenerated_views_are_found_for_Code_First_model()
        {
            using (var context = new PregenContext())
            {
                var _ = context.Blogs.ToString(); // Trigger view loading

                Assert.True(PregenContextViews.View0Accessed);
                Assert.True(PregenContextViews.View1Accessed);
            }
        }