public BaseRepository(DotnetomaniakContext context) { _context = context; }
protected override void AwardBadges(DotnetomaniakContext context) { context._1kPoints(); }
protected override void AwardBadges(DotnetomaniakContext context) { context.Facebook(); }
public KnownSourceRepository(DotnetomaniakContext context) : base(context) { _context = context; }
public MarkAsSpamRepository(DotnetomaniakContext context) : base(context) { _context = context; }
protected override void AwardBadges(DotnetomaniakContext context) { context.Commenter(); }
protected abstract void AwardBadges(DotnetomaniakContext context);
protected override void AwardBadges(DotnetomaniakContext context) { context.StoryAdder(); }
public UnitOfWork(DotnetomaniakContext context) { _context = context; }
public VoteRepository(DotnetomaniakContext context, ICache cache) : base(context) { _context = context; _cache = cache; }
protected override void AwardBadges(DotnetomaniakContext context) { context.Globetrotter(); }
protected override void AwardBadges(DotnetomaniakContext context) { context.EarlyBird(); }
public CommentSubscribtionRepository(DotnetomaniakContext context) : base(context) { _context = context; }
protected override void AwardBadges(DotnetomaniakContext context) { //awards a badge if user visits site between 2-3 AM context.NightOwl(); }
public StoryViewRepository(DotnetomaniakContext context) : base(context) { _context = context; }
protected override void AwardBadges(DotnetomaniakContext context) { context.GreatStory(); }
public RecommendationRepository(DotnetomaniakContext context) : base(context) { _context = context; }
public UserRepository(DotnetomaniakContext context) : base(context) { _context = context; }
public AchievementRepository(DotnetomaniakContext context) : base(context) { _context = context; }
public CategoryRepository(DotnetomaniakContext context) : base(context) { _context = context; }
public CommingEventRepository(DotnetomaniakContext context) : base(context) { _context = context; }
public StoryRepository(DotnetomaniakContext context, IConfigurationSettings settings) : base(context) { _context = context; _settings = settings; }
private void InitializeDatabase() { var context = new DotnetomaniakContext(new ConfigurationManagerWrapper()); context.Database.EnsureCreated(); }