public DBRepository(SimPressEFDBContext dbContext) { if (dbContext != null) { _dbContext = dbContext; } else { throw new NullReferenceException("dbContext is null"); } }
public void CanConnectToDBThrowDBContextUsingConnectionString() { SimPressEFDBContext context = GetDBContext(); Assert.IsTrue(context.Database.Exists()); }