Пример #1
0
        public ExmOrdersRenderingsController(IMvcContext mvcContext, IOrderEmailUtils orderEmailUtils)
        {
            Assert.ArgumentNotNull(mvcContext, nameof(mvcContext));
            Assert.ArgumentNotNull(orderEmailUtils, nameof(orderEmailUtils));

            this.mvcContext      = mvcContext;
            this.orderEmailUtils = orderEmailUtils;
        }
Пример #2
0
        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);
        }