public void SetUp() { _oversightOrchestrator = new Mock <IOversightOrchestrator>(); _outcomeOrchestrator = new Mock <IApplicationOutcomeOrchestrator>(); _appealOrchestrator = new Mock <IAppealOrchestrator>(); _controller = new OversightController(_outcomeOrchestrator.Object, _oversightOrchestrator.Object, _appealOrchestrator.Object) { ControllerContext = MockedControllerContext.Setup() }; var tempDataProvider = Mock.Of <ITempDataProvider>(); var tempDataDictionaryFactory = new TempDataDictionaryFactory(tempDataProvider); _tempDataDictionary = tempDataDictionaryFactory.GetTempData(new DefaultHttpContext()); _controller.TempData = _tempDataDictionary; }
public void Before_each_test() { _mediator = new Mock <IMediator>(); _service = new Mock <IRegistrationDetailsService>(); _controller = new OversightController(_mediator.Object, _service.Object); }