public ExmOrdersRenderingsController(IMvcContext mvcContext, IOrderEmailUtils orderEmailUtils) { Assert.ArgumentNotNull(mvcContext, nameof(mvcContext)); Assert.ArgumentNotNull(orderEmailUtils, nameof(orderEmailUtils)); this.mvcContext = mvcContext; this.orderEmailUtils = orderEmailUtils; }
public ExmOrdersRenderingsControllerTests() { this.fixture = new Fixture().Customize(new AutoDbCustomization()); this.mvcContext = Substitute.For <IMvcContext>(); this.orderEmailUtils = Substitute.For <IOrderEmailUtils>(); this.controller = new ExmOrdersRenderingsController(this.mvcContext, this.orderEmailUtils); }