public void Setup() { _routeCreator = MockRepository.GenerateStub<IRouteCreator>(); _heightMapImageBuilder = MockRepository.GenerateStub<IHeightMapImageBuilder>(); _heightMapImageCache = MockRepository.GenerateStub<IHeightMapImageCache>(); _geographicRouteLocator = MockRepository.GenerateStub<IGeographicRouteLocator>(); _routeToRouteResultMapper = MockRepository.GenerateStub<IRouteToRouteResultMapper>(); _unitOfWork = MockRepository.GenerateStub<IUnitOfWork>(); _sortSecurity = MockRepository.GenerateStub<ISortSecurity>(); _routeFileCreator = MockRepository.GenerateStub<IRouteFileCreator>(); _routeRepository = MockRepository.GenerateStub<IRepository<Route>>(); _unitOfWork.Stub(s => s.GetRepository<Route>()).Return(_routeRepository); _routeService = new RouteService(_routeCreator, _heightMapImageBuilder, _heightMapImageCache, _geographicRouteLocator, _routeToRouteResultMapper, _unitOfWork, _sortSecurity, _routeFileCreator); }
// // GET: /Profile/ public ProfileController(IAccountService accountService, IRouteToRouteResultMapper routeToRouteResultMapper) : base(accountService) { _routeToRouteResultMapper = routeToRouteResultMapper; }