public AnswerDescriptionRepositoryTests() { _dataContext = new FakeDataContext(); _fakeAnswerDescriptions = _dataContext.EntitySet <AnswerDescription>() as FakeAnswerDescriptions; _repository = new AnswerDescriptionRepository(_dataContext); }
public AnswerRepositoryTests() { _dataContext = new FakeDataContext(); _fakeAnswers = _dataContext.EntitySet <Answer>() as FakeAnswers; _repository = new AnswerRepository(_dataContext); }
public TestSetup() { var dataContext = new FakeDataContext(); Repository = new Repository <Suggestion>(dataContext); CacheMock = new TestCacheManager().CacheMock; TestLoggerFactory = new TestLoggerFactory(); SuggestionService = new SuggestionService(CacheMock.Object, Repository, TestLoggerFactory); FakeSuggestions = dataContext.EntitySet <Suggestion>() as FakeSuggestions; }