public void Setup()
 {
     _unitOfWorkFactory  = DalTestsSetup.UnitOfWorkFactory;
     _newsRepository     = new NewsRepository(DalTestsSetup.ContextProvider);
     _newsTextRepository = new NewsTextRepository(DalTestsSetup.ContextProvider);
     CreateTestData();
 }
Beispiel #2
0
 public NewsLogic(
     INewsRepository newsRepository,
     INewsTextRepository newsTextRepository,
     IUnitOfWorkFactory unitOfWorkFactory,
     IAuthenticationData authenticationData)
 {
     _newsRepository     = newsRepository;
     _newsTextRepository = newsTextRepository;
     _unitOfWorkFactory  = unitOfWorkFactory;
     _authenticationData = authenticationData;
 }