Skip to content

Commit

Permalink
feat(product,demo): create all product types in demo (#2622)
Browse files Browse the repository at this point in the history
  • Loading branch information
griest024 committed Nov 28, 2023
1 parent 2149b99 commit 7893fcf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
4 changes: 4 additions & 0 deletions apps/demo/src/app/drivers/in-memory/in-memory.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import { DaffGeographyInMemoryDriverModule } from '@daffodil/geography/driver/in
import { DaffNavigationInMemoryDriverModule } from '@daffodil/navigation/driver/in-memory';
import { DaffNewsletterInMemoryDriverModule } from '@daffodil/newsletter/driver/in-memory';
import { DaffProductInMemoryDriverModule } from '@daffodil/product/driver/in-memory';
import { DaffCompositeProductInMemoryDriverModule } from '@daffodil/product-composite/driver/in-memory';
import { DaffConfigurableProductInMemoryDriverModule } from '@daffodil/product-configurable/driver/in-memory';

import { DemoInMemoryBackendService } from './backend/backend.service';
import { DEMO_EXTERNAL_ROUTER_DRIVER_IN_MEMORY_CONFIG } from './external-router.config.token';
Expand All @@ -20,6 +22,8 @@ import { DEMO_EXTERNAL_ROUTER_DRIVER_IN_MEMORY_CONFIG } from './external-router.
HttpClientInMemoryWebApiModule.forRoot(DemoInMemoryBackendService),
DaffAuthInMemoryDriverModule.forRoot(),
DaffProductInMemoryDriverModule.forRoot(),
DaffCompositeProductInMemoryDriverModule.forRoot(),
DaffConfigurableProductInMemoryDriverModule.forRoot(),
DaffCartInMemoryDriverModule.forRoot(),
DaffCheckoutInMemoryDriverModule.forRoot(),
DaffNavigationInMemoryDriverModule.forRoot(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ import {
} from '@angular/core';

import { DaffProductDriver } from '@daffodil/product/driver';
import { DaffProductTestingModule } from '@daffodil/product/testing';
import {
DaffDefaultProductFactory,
DaffProductTestingModule,
daffProvideProductExtraFactoryTypes,
} from '@daffodil/product/testing';

import { DaffInMemoryProductService } from './product.service';

Expand All @@ -27,6 +31,7 @@ export class DaffProductInMemoryDriverModule {
provide: DaffProductDriver,
useExisting: DaffInMemoryProductService,
},
daffProvideProductExtraFactoryTypes(DaffDefaultProductFactory),
],
};
}
Expand Down

0 comments on commit 7893fcf

Please sign in to comment.