예제 #1
0
        public void Initialize()
        {
            var unitOfWork = TestHelpers.MockUnitOfWork();
            var userRepository = TestHelpers.MockRepository<User>(_users);

            _userService = new UserService(userRepository.Object, unitOfWork.Object);
        }
예제 #2
0
 public SecurityController(
     SecurityService securityService,
     UserService userService)
 {
     _securityService = securityService;
     _userService = userService;
 }