public TrackingController(IFormEventTrackingService formEventTrackingService, IPageEventTrackingService pageEventTrackingService, IEntityMapper entityMapper) { _formEventTrackingService = formEventTrackingService; _pageEventTrackingService = pageEventTrackingService; _entityMapper = entityMapper; }
public void SetUp() { _mockRepository = new MockRepository(); _formEventTrackingService = _mockRepository.StrictMock<IFormEventTrackingService>(); _pageEventTrackingService = _mockRepository.StrictMock<IPageEventTrackingService>(); _entityMapper = _mockRepository.StrictMock<IEntityMapper>(); _trackingController = new TrackingController(_formEventTrackingService, _pageEventTrackingService, _entityMapper); }