public IProductManagementService ResolveProductManagementService() { string connectionString = ConfigurationManager.ConnectionStrings ["CommerceObjectContext"].ConnectionString; ProductRepository repository = new SqlProductRepository(connectionString); IContractMapper mapper = new ContractMapper(); return(new ProductManagementService(repository, mapper)); }
public IProductManagementService ResolveProductManagementService() { string connectionString = ConfigurationManager.ConnectionStrings ["CommerceObjectContext"].ConnectionString; ProductRepository repository = new SqlProductRepository(connectionString); IContractMapper mapper = new ContractMapper(); return new ProductManagementService(repository, mapper); }