public StoryService(StoryRepository storyRepo, EntryRepository entryRepo, ApplicationUserManager userRepo, NewStoryRepository newStoryRepo, AnotherUserRepository aUserRepo, ApplicationUserStoryRepository AUSRepo) { _storyRepo = storyRepo; _entryRepo = entryRepo; _userRepo = userRepo; _newStoryRepo = newStoryRepo; _aUserRepo = aUserRepo; _AUSRepo = AUSRepo; }
public void GetEntry_MinusId_ReturnsNull() { var blog = EntryRepository <BlogEntry> .GetInstance().GetEntry(-1); Assert.AreEqual(blog, null); }
public ActionResult Get(DateTime StartDate, DateTime EndDate) => Ok(EntryRepository.GetEntriesInRange(StartDate, EndDate));
public EntryStatusModifier(EntryRepository entryRepository, ActivityRepository activityRepository) { this.entryRepository = entryRepository; this.activityRepository = activityRepository; }
public EntryManager() { _entryRepository = new EntryRepository(); }
public void Teardown() { repo = null; }
public void Startup() { repo = new EntryRepository(); }
public void Setup() { var context = DatabaseHelper.Connection(); _repository = new EntryRepository(context); }