public void RegisterAssembly(Assembly assembly, ContainerBuilder iocContainer) { DependencyRegisterContext context = new DependencyRegisterContext(assembly, iocContainer); DependencyRegister dependencyRegister = new DependencyRegister(); dependencyRegister.RegisterAssembly(context); }