public void Arrange() { _mediator = new Mock <IMediator>(); _logger = new Mock <ILog>(); _urlHelper = new Mock <UrlHelper>(); var orchestrator = new AccountTransactionsOrchestrator(_mediator.Object, _logger.Object); _controller = new AccountTransactionsController(orchestrator); _controller.Url = _urlHelper.Object; }
public void Arrange() { _mediator = new Mock <IMediator>(); _logger = new Mock <ILog>(); _urlHelper = new Mock <UrlHelper>(); _urlHelper.Setup(x => x.Route(It.IsAny <string>(), It.IsAny <object>())).Returns("dummyurl"); var orchestrator = new AccountTransactionsOrchestrator(_mediator.Object, _logger.Object); _controller = new AccountTransactionsController(orchestrator); _controller.Url = _urlHelper.Object; }