public void Initialize()
        {
            var resumeRepository = new Mock <IGenericRepository <Resume> >();
            var roleRepository   = new Mock <IGenericRepository <Role> >();
            var userRepository   = new Mock <IGenericRepository <User> >();

            _vacansyRepository = new Mock <IGenericRepository <Vacansy> >();
            var context = new Mock <Context>();

            _unitOfWork = new Mock <UnitOfWork>(context.Object, roleRepository.Object, userRepository.Object, resumeRepository.Object, _vacansyRepository.Object);

            _vacancyService = new VacansyService(_unitOfWork.Object);
        }
Example #2
0
 public VacansyController(IVacansyService vacansyService)
 {
     _vacansyService = vacansyService;
 }