blob: ffd8a7570fa7e4ea4aed7927ea5040ccbf21162f [file] [log] [blame]
AviZi280f8012017-06-09 02:39:56 +03001/*!
2 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
13 * or implied. See the License for the specific language governing
14 * permissions and limitations under the License.
15 */
16import { Factory } from 'rosie';
17import {overviewEditorHeaders} from 'sdc-app/onboarding/licenseModel/overview/LicenseModelOverviewConstants.js';
18import IdMixin from 'test-utils/factories/mixins/IdMixin.js';
19
20Factory.define('LicenseAgreementBaseFactory')
21 .attrs({
22 name: 'License Agreement',
23 description: 'sdsd',
24 licenseTerm: {
25 choice: 'Fixed_Term'
26 }
27 });
28
29Factory.define('LicenseAgreementExtendedBaseFactory')
Arielkbce89862018-05-30 14:52:00 +030030 .extend('LicenseAgreementBaseFactory');
AviZi280f8012017-06-09 02:39:56 +030031
32export const LicenseAgreementListItemFactory = new Factory()
33 .extend('LicenseAgreementExtendedBaseFactory')
34 .extend(IdMixin)
35 .attrs({
36 children: [],
37 isCollapsed: true,
38 itemType: overviewEditorHeaders.LICENSE_AGREEMENT
39 });
40
41export const LicenseAgreementDispatchFactory = new Factory()
42 .extend('LicenseAgreementExtendedBaseFactory')
43 .attrs({
44 featureGroupsIds: []
45 });
46
47export const LicenseAgreementStoreFactory = new Factory()
48 .extend('LicenseAgreementExtendedBaseFactory')
49 .extend(IdMixin)
50 .attrs({
51 featureGroupsIds: []
52 });
53
54export const LicenseAgreementDataListFactory = new Factory()
55 .extend('LicenseAgreementExtendedBaseFactory')
56 .extend(IdMixin)
57 .attrs({
58 featureGroupsIds: [],
59 children:[],
60 itemType: overviewEditorHeaders.LICENSE_AGREEMENT
61 });
62
63export const LicenseAgreementPostFactory = new Factory()
64 .extend('LicenseAgreementExtendedBaseFactory')
65 .attrs({
66 addedFeatureGroupsIds: []
67 });
68
69export const LicenseAgreementPutFactory = new Factory()
70 .extend('LicenseAgreementExtendedBaseFactory')
71 .attrs({
72 addedFeatureGroupsIds: [],
73 removedFeatureGroupsIds: []
74 });