public VoucherControllerTests() { _transactionLibrary = Substitute.For <ITransactionLibrary>(); _marketingLibrary = Substitute.For <IMarketingLibrary>(); _controller = new VoucherController(_transactionLibrary, _marketingLibrary); _controller.Url = Substitute.For <UrlHelper>(); _controller.Url.Action(Arg.Any <string>()).Returns("ControllerUrl"); }
public VoucherController(ITransactionLibrary transactionLibrary, IMarketingLibrary marketingLibrary) { _transactionLibrary = transactionLibrary; _marketingLibrary = marketingLibrary; }