private static CustomerModuleController GetContactController() { Func <IPlatformRepository> platformRepositoryFactory = () => new PlatformRepository("VirtoCommerce", new EntityPrimaryKeyGeneratorInterceptor(), new AuditableInterceptor(null)); Func <ICustomerRepository> customerRepositoryFactory = () => new CustomerRepositoryImpl("VirtoCommerce", new EntityPrimaryKeyGeneratorInterceptor(), new AuditableInterceptor(null)); var dynamicPropertyService = new DynamicPropertyService(platformRepositoryFactory); var contactService = new ContactServiceImpl(customerRepositoryFactory, dynamicPropertyService, null); var orgService = new OrganizationServiceImpl(customerRepositoryFactory, dynamicPropertyService); var searchService = new CustomerSearchServiceImpl(customerRepositoryFactory); return(new CustomerModuleController(contactService, orgService, searchService, null)); }
private static CustomerModuleController GetContactController() { Func <ICustomerRepository> customerRepositoryFactory = () => { return(new CustomerRepositoryImpl("VirtoCommerce", new EntityPrimaryKeyGeneratorInterceptor(), new AuditableInterceptor())); }; var contactService = new ContactServiceImpl(customerRepositoryFactory); var orgService = new OrganizationServiceImpl(customerRepositoryFactory); var searchService = new CustomerSearchServiceImpl(customerRepositoryFactory); return(new CustomerModuleController(contactService, orgService, searchService)); }