-
Notifications
You must be signed in to change notification settings - Fork 0
/
mockProduct.js
52 lines (47 loc) · 1015 Bytes
/
mockProduct.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
var dataProduct1 = {
id: 1,
name: "Product 1",
remoteProjectInfo: [{
remoteProjectManager: {
id: 1,
name: "Remote Project Manager 1",
type: "GITHUB_MILESTONE",
url: "url1",
token: "username1:password1"
},
scopeId: "scope 1"
}]
};
var dataProduct2 = {
id: 2,
name: "Product 2",
remoteProjectInfo: [{
remoteProjectManager: {
id: 2,
name: "Remote Project Manager 2",
type: "VERSION_ONE",
url: "url2",
token: "username2:password2"
},
scopeId: "scope 2"
}]
};
var dataProduct3 = {
id: 3,
name: "Product 3",
remoteProjectInfo: [{
remoteProjectManager: {
id: 1,
name: "Remote Project Manager 1",
type: "GITHUB_MILESTONE",
url: "url1",
token: "username1:password1"
},
scopeId: "scope 3"
}]
};
var mockProduct = function ($q) {
var model = mockModel("Product", $q, dataProduct1);
return model;
};
angular.module("mock.product", []).service("Product", mockProduct);