/// <summary> /// Initializes a new instance of the <see cref="RepositoryBase"/> class. /// </summary> protected RepositoryBase(IUnitOfWork onboardingContext) { Check.IsNotNull<IUnitOfWork>(onboardingContext, "onboardingContext"); this.context = onboardingContext as IDataOnboardingContext; }
public void TestInitialize() { using (var context = new DataOnboardingContext(unitTestDatabaseConnectionString)) { Helper.CreateSqlCeDataBaseFromEntityFrameworkDbContext(context, unitTestDatabaseFilePath); } testDBContext = new DataOnboardingContext(unitTestDatabaseConnectionString); }