示例#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;
 }