public void ReturnsObjectContextForDbContext()
            {
                var dbContext = new TestDbContextContainer();

                var objectContext = dbContext.GetObjectContext();

                Assert.IsNotNull(objectContext);
            }
예제 #2
0
            public void ReturnsObjectContextForDbContext()
            {
                var dbContext = new TestDbContextContainer();

                var objectContext = dbContext.GetObjectContext();

                Assert.IsNotNull(objectContext);
            }
            public void ReturnsObjectContextForDbContext()
            {
                using (var dbContext = new TestDbContextContainer())
                {
#pragma warning disable IDISP001
                    var objectContext = dbContext.GetObjectContext();
#pragma warning restore IDISP001

                    Assert.IsNotNull(objectContext);
                }
            }