Beispiel #1
0
        public void SetUp()
        {
            _dbConnection = ContextHelper.OpenSqliteInMemoryConnection();
            _dataContext  = ContextHelper.CreateContext(_dbConnection, true);
            _userManager  = ContextHelper.CreateUserManager(_dataContext);
            _roleManager  = ContextHelper.CreateRoleManager(_dataContext);
            _service      = new DefaultDataInitializationService(_userManager, _roleManager);

            _dataContext.Database.EnsureCreated();
        }