public void SetUp()
        {
            DomainEvent.TurnOff();

            context = new ProductBuildingContext(
                new ProductViewData(), 
                new ModelStateDictionary(), 
                MockRepository.GenerateStub<HttpRequestBase>());

            contributor = InitContributor();
        }
Beispiel #2
0
        public void SetUp()
        {
            DomainEvent.TurnOff();

            context = new ProductBuildingContext(
                new ProductViewData(),
                new ModelStateDictionary(),
                MockRepository.GenerateStub <HttpRequestBase>());

            contributor = InitContributor();
        }
        public ProductBuilder(IProductBuilderContributor[] contributors)
        {
            if (contributors == null)
            {
                throw new ArgumentNullException("contributors");
            }
            if (contributors.Length == 0)
            {
                throw new ArgumentException("No IProductBuilderContributor implementations have been registered");
            }

            this.contributors = contributors;
        }