private DomainBuilder CreateDomainBuilder() { var domainBuilder = new DomainBuilder(); DomainConfigurations.ForEach(c => domainBuilder.Register(c)); return(domainBuilder); }
public void AllRegistrationsMustBeResolvable() { var container = new ContainerBuilder(); var cfg = new ShopDomainConfiguration(); var domainBuilder = new DomainBuilder(); domainBuilder.Register(cfg); domainBuilder.Configure(container); ResolveAll(container.Build()); }