Ejemplo n.º 1
0
 public AddFlagModel(UserManager <Employee> userManager,
                     RoleManager <EmployeeRole> roleManager,
                     FeatureFlagRepository flags)
 {
     this.userManager = userManager;
     this.roleManager = roleManager;
     this.flags       = flags;
 }
        public void TestInitialize()
        {
            config = new Config();

            dbContext = new QuizEngineDataContext(config.ConnectionString);

            featureFlagRepository = new FeatureFlagRepository(dbContext, null);
        }
Ejemplo n.º 3
0
 public FlagController(IDistributedCache cache, FeatureFlagRepository flags)
 {
     this.cache = cache;
     this.flags = flags;
     this.jsonSerializerSettings = new JsonSerializerSettings
     {
         ContractResolver = new CamelCasePropertyNamesContractResolver()
     };
 }