Example #1
0
        public void ShouldReturnInstanceOfCarsDbContext()
        {
            // Arrange
            var db = CarsSystemDbContext.Create();

            // Act & Assert
            Assert.IsInstanceOf <CarsSystemDbContext>(db);
        }
 public static void Initialize()
 {
     Database.SetInitializer(new MigrateDatabaseToLatestVersion <CarsSystemDbContext, Configuration>());
     CarsSystemDbContext.Create().Database.Initialize(true);
 }
        public void CarsSystemDbContext_CreateMethodShouldReturnInstanceOfICarsDbContext()
        {
            var db = CarsSystemDbContext.Create();

            Assert.IsInstanceOf <ICarsSystemDbContext>(db);
        }