private DomainBuilder CreateDomainBuilder()
        {
            var domainBuilder = new DomainBuilder();

            DomainConfigurations.ForEach(c => domainBuilder.Register(c));
            return(domainBuilder);
        }
Exemple #2
0
        public void AllRegistrationsMustBeResolvable()
        {
            var container     = new ContainerBuilder();
            var cfg           = new ShopDomainConfiguration();
            var domainBuilder = new DomainBuilder();

            domainBuilder.Register(cfg);
            domainBuilder.Configure(container);
            ResolveAll(container.Build());
        }