fable 3.0.61 → 3.0.63

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fable",
3
- "version": "3.0.61",
3
+ "version": "3.0.63",
4
4
  "description": "An entity behavior management and API bundling library.",
5
5
  "main": "source/Fable.js",
6
6
  "scripts": {
@@ -49,7 +49,7 @@
49
49
  },
50
50
  "homepage": "https://github.com/stevenvelozo/fable",
51
51
  "devDependencies": {
52
- "quackage": "^1.0.11"
52
+ "quackage": "^1.0.13"
53
53
  },
54
54
  "dependencies": {
55
55
  "async.eachlimit": "^0.5.2",
@@ -58,7 +58,7 @@
58
58
  "cookie": "^0.5.0",
59
59
  "data-arithmatic": "^1.0.7",
60
60
  "fable-log": "^3.0.10",
61
- "fable-serviceproviderbase": "^3.0.5",
61
+ "fable-serviceproviderbase": "^3.0.6",
62
62
  "fable-settings": "^3.0.6",
63
63
  "fable-uuid": "^3.0.5",
64
64
  "manyfest": "^1.0.24",
@@ -16,10 +16,10 @@ class FableService extends libFableServiceBase.CoreServiceProviderBase
16
16
  this.serviceTypes = [];
17
17
 
18
18
  // A map of instantiated services
19
- this.services = {};
19
+ this.serviceMap = {};
20
20
 
21
21
  // A map of the default instantiated service by type
22
- this.defaultServices = {};
22
+ this.services = {};
23
23
 
24
24
  // A map of class constructors for services
25
25
  this.serviceClasses = {};
@@ -34,7 +34,7 @@ class FableService extends libFableServiceBase.CoreServiceProviderBase
34
34
  this.serviceTypes.push(pServiceType);
35
35
 
36
36
  // Add the container for instantiated services to go in
37
- this.services[pServiceType] = {};
37
+ this.serviceMap[pServiceType] = {};
38
38
 
39
39
  // Using the static member of the class is a much more reliable way to check if it is a service class than instanceof
40
40
  if ((typeof(pServiceClass) == 'function') && (pServiceClass.isFableService))
@@ -69,10 +69,10 @@ class FableService extends libFableServiceBase.CoreServiceProviderBase
69
69
  }
70
70
 
71
71
  // Add the service to the service map
72
- this.services[pServiceType][tmpService.Hash] = tmpService;
72
+ this.serviceMap[pServiceType][tmpService.Hash] = tmpService;
73
73
 
74
74
  // If this is the first service of this type, make it the default
75
- if (!this.defaultServices.hasOwnProperty(pServiceType))
75
+ if (!this.services.hasOwnProperty(pServiceType))
76
76
  {
77
77
  this.setDefaultServiceInstantiation(pServiceType, tmpService.Hash)
78
78
  }
@@ -87,10 +87,10 @@ class FableService extends libFableServiceBase.CoreServiceProviderBase
87
87
  let tmpService = this.instantiateServiceProviderWithoutRegistration(pServiceType, pOptions, pCustomServiceHash);
88
88
 
89
89
  // Add the service to the service map
90
- this.services[pServiceType][tmpService.Hash] = tmpService;
90
+ this.serviceMap[pServiceType][tmpService.Hash] = tmpService;
91
91
 
92
92
  // If this is the first service of this type, make it the default
93
- if (!this.defaultServices.hasOwnProperty(pServiceType))
93
+ if (!this.services.hasOwnProperty(pServiceType))
94
94
  {
95
95
  this.setDefaultServiceInstantiation(pServiceType, tmpService.Hash)
96
96
  }
@@ -119,17 +119,17 @@ class FableService extends libFableServiceBase.CoreServiceProviderBase
119
119
  // The service should already be instantiated, so just connect it to fable
120
120
  pServiceInstance.connectFable(this.fable);
121
121
 
122
- if (!this.services.hasOwnProperty(tmpServiceType))
122
+ if (!this.serviceMap.hasOwnProperty(tmpServiceType))
123
123
  {
124
124
  // If the core service hasn't registered itself yet, create the service container for it.
125
125
  // This means you couldn't register another with this type unless it was later registered with a constructor class.
126
126
  this.services[tmpServiceType] = {};
127
127
  }
128
128
  // Add the service to the service map
129
- this.services[tmpServiceType][tmpServiceHash] = pServiceInstance;
129
+ this.serviceMap[tmpServiceType][tmpServiceHash] = pServiceInstance;
130
130
 
131
131
  // If this is the first service of this type, make it the default
132
- if (!this.defaultServices.hasOwnProperty(tmpServiceType))
132
+ if (!this.services.hasOwnProperty(tmpServiceType))
133
133
  {
134
134
  this.setDefaultServiceInstantiation(tmpServiceType, tmpServiceHash)
135
135
  }
@@ -139,10 +139,10 @@ class FableService extends libFableServiceBase.CoreServiceProviderBase
139
139
 
140
140
  setDefaultServiceInstantiation(pServiceType, pServiceHash)
141
141
  {
142
- if (this.services[pServiceType].hasOwnProperty(pServiceHash))
142
+ if (this.serviceMap[pServiceType].hasOwnProperty(pServiceHash))
143
143
  {
144
- this.fable[pServiceType] = this.services[pServiceType][pServiceHash];
145
- this.defaultServices[pServiceType] = this.services[pServiceType][pServiceHash];
144
+ this.fable[pServiceType] = this.serviceMap[pServiceType][pServiceHash];
145
+ this.services[pServiceType] = this.serviceMap[pServiceType][pServiceHash];
146
146
  return true;
147
147
  }
148
148
 
package/source/Fable.js CHANGED
@@ -84,7 +84,7 @@ class Fable
84
84
 
85
85
  get defaultServices()
86
86
  {
87
- return this._coreServices.ServiceManager.defaultServices;
87
+ return this._coreServices.ServiceManager.services;
88
88
  }
89
89
 
90
90
  getUUID()
@@ -33,7 +33,7 @@ class FableServiceDataGeneration extends libFableServiceBase
33
33
  let tmpLength = (typeof(pLength) === 'undefined') ? 10 : pLength;
34
34
  let tmpMaxNumber = (typeof(pMaxNumber) === 'undefined') ? ((10 ** tmpLength) - 1) : pMaxNumber;
35
35
 
36
- return this.defaultServices.DataFormat.stringPadStart(this.randomIntegerUpTo(tmpMaxNumber), pLength, '0');
36
+ return this.services.DataFormat.stringPadStart(this.randomIntegerUpTo(tmpMaxNumber), pLength, '0');
37
37
  }
38
38
 
39
39
 
@@ -20,7 +20,7 @@ class FableServiceMetaTemplate extends libFableServiceBase
20
20
  this.WordTree = new libWordTree();
21
21
 
22
22
  // In order to allow asynchronous template processing we need to use the async.eachLimit function
23
- this.StringParser = new libStringParser(this.fable.defaultServices.Utility.eachLimit);
23
+ this.StringParser = new libStringParser(this.fable.services.Utility.eachLimit);
24
24
 
25
25
  this.ParseTree = this.WordTree.ParseTree;
26
26
  }
@@ -15,7 +15,7 @@ class FableServiceRestClient extends libFableServiceBase
15
15
  this.TraceLog = true;
16
16
  }
17
17
 
18
- this.dataFormat = this.fable.defaultServices.DataFormat;
18
+ this.dataFormat = this.fable.services.DataFormat;
19
19
 
20
20
  this.serviceType = 'RestClient';
21
21
 
@@ -28,9 +28,20 @@ class FableServiceUtility extends libFableServiceBase
28
28
 
29
29
  // Underscore and lodash have a behavior, _.extend, which merges objects.
30
30
  // Now that es6 gives us this, use the native thingy.
31
+ // Nevermind, the native thing is not stable enough across environments
32
+ // Basic shallow copy
31
33
  extend(pDestinationObject, ...pSourceObjects)
32
34
  {
33
- return Object.assign(pDestinationObject, ...pSourceObjects);
35
+ for (let i = 0; i < pSourceObjects.length; i++)
36
+ {
37
+ let tmpSourceObject = pSourceObjects[i];
38
+ let tmpObjectProperties = Object.keys(tmpSourceObject);
39
+ for (let k = 0; k < tmpObjectProperties.length; k++)
40
+ {
41
+ pDestinationObject[tmpObjectProperties[k]] = tmpSourceObject[tmpObjectProperties[k]];
42
+ }
43
+ }
44
+ return pDestinationObject;
34
45
  }
35
46
 
36
47
  // Underscore and lodash have a behavior, _.template, which compiles a
@@ -92,10 +103,15 @@ class FableServiceUtility extends libFableServiceBase
92
103
  {
93
104
 
94
105
  // Split the string into an array based on the digit groups.
95
- var tmpDateParts = pISOString.split( /\D+/ );
106
+ let tmpDateParts = pISOString.split( /\D+/ );
96
107
 
97
108
  // Set up a date object with the current time.
98
- var tmpReturnDate = new Date();
109
+ let tmpReturnDate = new Date();
110
+
111
+ // Track the number of hours we need to adjust the date by based on the timezone.
112
+ let tmpTimeZoneOffsetInHours = 0;
113
+ // Track the number of minutes we need to adjust the date by based on the timezone.
114
+ let tmpTimeZoneOffsetInMinutes = 0;
99
115
 
100
116
  // Manually parse the parts of the string and set each part for the
101
117
  // date. Note: Using the UTC versions of these functions is necessary
@@ -114,16 +130,9 @@ class FableServiceUtility extends libFableServiceBase
114
130
  tmpReturnDate.setUTCSeconds( parseInt( tmpDateParts[ 5 ] ) );
115
131
  tmpReturnDate.setUTCMilliseconds( parseInt( tmpDateParts[ 6 ] ) );
116
132
 
117
- // Track the number of hours we need to adjust the date by based on the timezone.
118
- var tmpTimeZoneOffsetInHours = 0;
119
-
120
133
  // If there's a value for either the hours or minutes offset.
121
134
  if (tmpDateParts[ 7 ] || tmpDateParts[ 8 ])
122
135
  {
123
-
124
- // Track the number of minutes we need to adjust the date by based on the timezone.
125
- var tmpTimeZoneOffsetInMinutes = 0;
126
-
127
136
  // If there's a value for the minutes offset.
128
137
  if (tmpDateParts[8])
129
138
  {
@@ -29,7 +29,7 @@ suite
29
29
  (fTestComplete)=>
30
30
  {
31
31
  let testFable = new libFable({LogStreams: false});
32
- let _DataFormat = testFable.defaultServices.DataFormat;
32
+ let _DataFormat = testFable.services.DataFormat;
33
33
  Expect(_DataFormat
34
34
  .formatTimeSpan(1000))
35
35
  .to.equal('00:00:01.000');
@@ -51,7 +51,7 @@ suite
51
51
  (fTestComplete) =>
52
52
  {
53
53
  let testFable = new libFable({LogStreams: false});
54
- let _DataFormat = testFable.defaultServices.DataFormat;
54
+ let _DataFormat = testFable.services.DataFormat;
55
55
  Expect(_DataFormat
56
56
  .formatTimeDelta(1000, 2000))
57
57
  .to.equal('00:00:01.000');
@@ -73,7 +73,7 @@ suite
73
73
  (fTestComplete) =>
74
74
  {
75
75
  let testFable = new libFable();
76
- let _DataFormat = testFable.defaultServices.DataFormat;
76
+ let _DataFormat = testFable.services.DataFormat;
77
77
  Expect(_DataFormat
78
78
  .getMonthFromDate(new Date('10/20/1988')))
79
79
  .to.equal('October');
@@ -96,7 +96,7 @@ suite
96
96
  (fTestComplete) =>
97
97
  {
98
98
  let testFable = new libFable();
99
- let _DataFormat = testFable.defaultServices.DataFormat;
99
+ let _DataFormat = testFable.services.DataFormat;
100
100
  Expect(_DataFormat
101
101
  .formatSortableStringFromDate(new Date('10/20/1986')))
102
102
  .to.equal('19860920');
@@ -29,7 +29,7 @@ suite
29
29
  (fTestComplete)=>
30
30
  {
31
31
  let testFable = new libFable({LogStreams: false});
32
- let _DataFormat = testFable.defaultServices.DataFormat;
32
+ let _DataFormat = testFable.services.DataFormat;
33
33
  Expect(_DataFormat
34
34
  .stringReverse('Dogs'))
35
35
  .to.equal('sgoD');
@@ -45,7 +45,7 @@ suite
45
45
  (fTestComplete)=>
46
46
  {
47
47
  let testFable = new libFable({LogStreams: false});
48
- let _DataFormat = testFable.defaultServices.DataFormat;
48
+ let _DataFormat = testFable.services.DataFormat;
49
49
  Expect(_DataFormat
50
50
  .insecureStringHash('Dogs'))
51
51
  .to.equal('HSH2135767');
@@ -68,7 +68,7 @@ suite
68
68
  (fTestComplete)=>
69
69
  {
70
70
  let testFable = new libFable({LogStreams: false});
71
- let _DataFormat = testFable.defaultServices.DataFormat;
71
+ let _DataFormat = testFable.services.DataFormat;
72
72
  Expect(_DataFormat.cleanNonAlphaCharacters('Dogs'))
73
73
  .to.equal('Dogs');
74
74
  Expect(_DataFormat.cleanNonAlphaCharacters('Dogs1'))
@@ -84,7 +84,7 @@ suite
84
84
  (fTestComplete)=>
85
85
  {
86
86
  let testFable = new libFable({LogStreams: false});
87
- let _DataFormat = testFable.defaultServices.DataFormat;
87
+ let _DataFormat = testFable.services.DataFormat;
88
88
  Expect(_DataFormat.capitalizeEachWord('Dogs-with-guns 12321'))
89
89
  .to.equal('Dogs-With-Guns 12321');
90
90
  Expect(_DataFormat.cleanNonAlphaCharacters(_DataFormat.capitalizeEachWord('meadow-endpoints')))
@@ -99,7 +99,7 @@ suite
99
99
  (fTestComplete)=>
100
100
  {
101
101
  let testFable = new libFable({LogStreams: false});
102
- let _DataFormat = testFable.defaultServices.DataFormat;
102
+ let _DataFormat = testFable.services.DataFormat;
103
103
  // Test the enclosure cleaning function
104
104
  Expect(_DataFormat
105
105
  .cleanEnclosureWrapCharacters('`', '`Dogs`'))
@@ -133,7 +133,7 @@ suite
133
133
  (fTestComplete)=>
134
134
  {
135
135
  let testFable = new libFable({LogStreams: false});
136
- let _DataFormat = testFable.defaultServices.DataFormat;
136
+ let _DataFormat = testFable.services.DataFormat;
137
137
  Expect(_DataFormat
138
138
  .stringStartsWith('Dogs', 'Do'))
139
139
  .to.equal(true);
@@ -155,7 +155,7 @@ suite
155
155
  (fTestComplete)=>
156
156
  {
157
157
  let testFable = new libFable({LogStreams: false});
158
- let _DataFormat = testFable.defaultServices.DataFormat;
158
+ let _DataFormat = testFable.services.DataFormat;
159
159
  _DataFormat._UseEngineStringStartsWith = false;
160
160
  Expect(_DataFormat
161
161
  .stringStartsWith('Dogs', 'Do'))
@@ -178,7 +178,7 @@ suite
178
178
  (fTestComplete)=>
179
179
  {
180
180
  let testFable = new libFable({LogStreams: false});
181
- let _DataFormat = testFable.defaultServices.DataFormat;
181
+ let _DataFormat = testFable.services.DataFormat;
182
182
  Expect(_DataFormat
183
183
  .stringEndsWith('Dogs', 'gs'))
184
184
  .to.equal(true);
@@ -200,7 +200,7 @@ suite
200
200
  (fTestComplete)=>
201
201
  {
202
202
  let testFable = new libFable({LogStreams: false});
203
- let _DataFormat = testFable.defaultServices.DataFormat;
203
+ let _DataFormat = testFable.services.DataFormat;
204
204
  _DataFormat._UseEngineStringEndsWith = false;
205
205
  Expect(_DataFormat
206
206
  .stringEndsWith('Dogs', 'gs'))
@@ -230,7 +230,7 @@ suite
230
230
  (fTestComplete)=>
231
231
  {
232
232
  let testFable = new libFable({LogStreams: false});
233
- let _DataFormat = testFable.defaultServices.DataFormat;
233
+ let _DataFormat = testFable.services.DataFormat;
234
234
  Expect(_DataFormat
235
235
  .cleanNonAlphaCharacters('Dogs'))
236
236
  .to.equal('Dogs');
@@ -254,7 +254,7 @@ suite
254
254
  (fTestComplete)=>
255
255
  {
256
256
  let testFable = new libFable({LogStreams: false});
257
- let _DataFormat = testFable.defaultServices.DataFormat;
257
+ let _DataFormat = testFable.services.DataFormat;
258
258
  // The usual use case (e.g. for zero padding dates)
259
259
  Expect(_DataFormat.stringPadStart('9', 2, '0'))
260
260
  .to.equal('09');
@@ -282,7 +282,7 @@ suite
282
282
  (fTestComplete)=>
283
283
  {
284
284
  let testFable = new libFable({LogStreams: false});
285
- let _DataFormat = testFable.defaultServices.DataFormat;
285
+ let _DataFormat = testFable.services.DataFormat;
286
286
  // The usual use case (e.g. for left justifying text in fixed-width scenarios)
287
287
  Expect(_DataFormat.stringPadEnd('Bob', 10, ' '))
288
288
  .to.equal('Bob ');
@@ -29,7 +29,7 @@ suite
29
29
  (fTestComplete)=>
30
30
  {
31
31
  let testFable = new libFable({LogStreams: false});
32
- let _DataFormat = testFable.defaultServices.DataFormat;
32
+ let _DataFormat = testFable.services.DataFormat;
33
33
  Expect(_DataFormat
34
34
  .formatterAddCommasToNumber(1000))
35
35
  .to.equal('1,000');
@@ -54,7 +54,7 @@ suite
54
54
  (fTestComplete)=>
55
55
  {
56
56
  let testFable = new libFable({LogStreams: false});
57
- let _DataFormat = testFable.defaultServices.DataFormat;
57
+ let _DataFormat = testFable.services.DataFormat;
58
58
  Expect(_DataFormat
59
59
  .formatterDollars(1000))
60
60
  .to.equal('$1,000.00');
@@ -82,7 +82,7 @@ suite
82
82
  (fTestComplete)=>
83
83
  {
84
84
  let testFable = new libFable({LogStreams: false});
85
- let _DataFormat = testFable.defaultServices.DataFormat;
85
+ let _DataFormat = testFable.services.DataFormat;
86
86
  Expect(_DataFormat
87
87
  .formatterRoundNumber(1000, 2))
88
88
  .to.equal('1000.00');
@@ -29,7 +29,7 @@ suite
29
29
  (fTestComplete)=>
30
30
  {
31
31
  let testFable = new libFable({LogStreams: false});
32
- let _DataFormat = testFable.defaultServices.DataFormat;
32
+ let _DataFormat = testFable.services.DataFormat;
33
33
  Expect(_DataFormat
34
34
  .stringBeforeMatch('Dogs are cool', 'are'))
35
35
  .to.equal('Dogs ');
@@ -48,7 +48,7 @@ suite
48
48
  (fTestComplete)=>
49
49
  {
50
50
  let testFable = new libFable({LogStreams: false});
51
- let _DataFormat = testFable.defaultServices.DataFormat;
51
+ let _DataFormat = testFable.services.DataFormat;
52
52
  Expect(_DataFormat
53
53
  .stringAfterMatch('Dogs are cool', 'are'))
54
54
  .to.equal(' cool');
@@ -67,7 +67,7 @@ suite
67
67
  (fTestComplete)=>
68
68
  {
69
69
  let testFable = new libFable({LogStreams: false});
70
- let _DataFormat = testFable.defaultServices.DataFormat;
70
+ let _DataFormat = testFable.services.DataFormat;
71
71
  Expect(_DataFormat
72
72
  .stringCountEnclosures('Dogs (are) cool'))
73
73
  .to.equal(1);
@@ -100,7 +100,7 @@ suite
100
100
  (fTestComplete)=>
101
101
  {
102
102
  let testFable = new libFable({LogStreams: false});
103
- let _DataFormat = testFable.defaultServices.DataFormat;
103
+ let _DataFormat = testFable.services.DataFormat;
104
104
  Expect(_DataFormat
105
105
  .stringGetEnclosureValueByIndex('Dogs (are) cool', 0))
106
106
  .to.equal('are');
@@ -135,7 +135,7 @@ suite
135
135
  (fTestComplete)=>
136
136
  {
137
137
  let testFable = new libFable({LogStreams: false});
138
- let _DataFormat = testFable.defaultServices.DataFormat;
138
+ let _DataFormat = testFable.services.DataFormat;
139
139
  Expect(_DataFormat
140
140
  .stringRemoveEnclosureByIndex('Dogs (are) cool', 0))
141
141
  .to.equal('Dogs cool');
@@ -29,9 +29,9 @@ suite
29
29
  let testFable = new libFable();
30
30
  let tmpOperation = testFable.serviceManager.instantiateServiceProvider('Operation', {Name: 'Big Complex Integration Operation'}, 'INTEGRATION-123');
31
31
  Expect(tmpOperation).to.be.an('object');
32
- Expect(testFable.services.Operation['INTEGRATION-123']).to.equal(tmpOperation);
33
- Expect(testFable.services.Operation['BADHASH']).to.be.undefined;
34
- Expect(testFable.services.Operation.hasOwnProperty('INTEGRATION-123')).to.equal(true);
32
+ Expect(testFable.serviceMap.Operation['INTEGRATION-123']).to.equal(tmpOperation);
33
+ Expect(testFable.serviceMap.Operation['BADHASH']).to.be.undefined;
34
+ Expect(testFable.serviceMap.Operation.hasOwnProperty('INTEGRATION-123')).to.equal(true);
35
35
  tmpOperation.log.info(`Operation GUID ${tmpOperation.GUID} ---- Test 123`);
36
36
  Expect(tmpOperation.state.Log.length).to.equal(1);
37
37
  Expect(tmpOperation.state.Log[0]).to.contain('Test 123');
@@ -51,7 +51,7 @@ suite
51
51
  Expect(tmpCollisionOperation).to.be.an('object');
52
52
  Expect(tmpCollisionOperation.name).to.equal('Another Big Complex Integration Operation with Colliding Name');
53
53
 
54
- Expect(testFable.services.Operation['INTEGRATION-123']).to.equal(tmpCollisionOperation);
54
+ Expect(testFable.serviceMap.Operation['INTEGRATION-123']).to.equal(tmpCollisionOperation);
55
55
 
56
56
  }
57
57
  );
@@ -63,7 +63,7 @@ suite
63
63
  let testFable = new libFable();
64
64
  let tmpOperation = testFable.serviceManager.instantiateServiceProvider('Operation', {Name:'Another Big Complex Integration Operation'});
65
65
  Expect(tmpOperation).to.be.an('object');
66
- Expect(testFable.services.Operation.hasOwnProperty(tmpOperation.Hash)).to.equal(true);
66
+ Expect(testFable.serviceMap.Operation.hasOwnProperty(tmpOperation.Hash)).to.equal(true);
67
67
  Expect(tmpOperation.state.Log.length).to.equal(0);
68
68
  let tmpText = `Operation ${tmpOperation.Hash} starting up...`;
69
69
  tmpOperation.log.info(tmpText);
@@ -107,9 +107,9 @@ suite
107
107
  }
108
108
  testFable.serviceManager.instantiateServiceProvider('SimpleService', { SomeOption: true }, 'TheBestOne');
109
109
 
110
- Expect(testFable.serviceManager.defaultServices.SimpleService).to.be.an('object');
111
- Expect(testFable.serviceManager.defaultServices.SimpleService.MyFancyProperty).to.equal('Fancy');
112
- Expect(testFable.serviceManager.services.SimpleService.TheBestOne.MyFancyProperty).to.equal('Fancy');
110
+ Expect(testFable.serviceManager.services.SimpleService).to.be.an('object');
111
+ Expect(testFable.serviceManager.services.SimpleService.MyFancyProperty).to.equal('Fancy');
112
+ Expect(testFable.serviceManager.serviceMap.SimpleService.TheBestOne.MyFancyProperty).to.equal('Fancy');
113
113
  }
114
114
  );
115
115
  test
@@ -123,11 +123,11 @@ suite
123
123
 
124
124
  Expect(testFable.serviceManager.services['SimpleService']['SimpleService-123']).to.be.an('object');
125
125
 
126
- Expect(testFable.serviceManager.defaultServices['SimpleService']).to.be.an('object');
126
+ Expect(testFable.serviceManager.services['SimpleService']).to.be.an('object');
127
127
 
128
- testFable.serviceManager.defaultServices.SimpleService.doSomething();
128
+ testFable.serviceManager.services.SimpleService.doSomething();
129
129
 
130
- Expect(testFable.serviceManager.defaultServices['SimpleService'].Hash).to.equal('SimpleService-123');
130
+ Expect(testFable.serviceManager.services['SimpleService'].Hash).to.equal('SimpleService-123');
131
131
  }
132
132
  );
133
133
  test
@@ -159,8 +159,8 @@ suite
159
159
  let tmpService = testFable.serviceManager.instantiateServiceProviderWithoutRegistration('SimpleService', { SomeOption: true }, 'SimpleService-99');
160
160
  let tmpServiceFromPrototype = testFable.serviceManager.instantiateServiceProviderFromPrototype('SimpleService', { SomeOption: true }, 'SimpleService-100', SimpleService);
161
161
 
162
- Expect(testFable.services.SimpleService['SimpleService-99']).to.be.an('undefined');
163
- Expect(testFable.services.SimpleService['SimpleService-100']).to.be.an('object');
162
+ Expect(testFable.serviceMap.SimpleService['SimpleService-99']).to.be.an('undefined');
163
+ Expect(testFable.serviceMap.SimpleService['SimpleService-100']).to.be.an('object');
164
164
  Expect(tmpServiceFromPrototype).to.be.an('object');
165
165
 
166
166
  Expect(tmpService).to.be.an('object');
@@ -178,25 +178,25 @@ suite
178
178
  testFable.serviceManager.addServiceType('DatabaseService', MockDatabaseService);
179
179
 
180
180
  testFable.serviceManager.instantiateServiceProvider('SimpleService', { SomeOption: true });
181
- testFable.serviceManager.defaultServices.SimpleService.doSomething();
181
+ testFable.serviceManager.services.SimpleService.doSomething();
182
182
 
183
183
  testFable.serviceManager.instantiateServiceProvider('DatabaseService', { ConnectionString: 'mongodb://localhost:27017/test' }, 'PrimaryConnection');
184
184
 
185
- Expect(testFable.serviceManager.defaultServices.DatabaseService.Hash).to.equal('PrimaryConnection');
185
+ Expect(testFable.serviceManager.services.DatabaseService.Hash).to.equal('PrimaryConnection');
186
186
 
187
187
  testFable.serviceManager.instantiateServiceProvider('DatabaseService', { ConnectionString: 'mongodb://localhost:27017/test' }, 'SecondaryConnection');
188
188
 
189
- Expect(testFable.serviceManager.defaultServices.DatabaseService.Hash).to.equal('PrimaryConnection');
189
+ Expect(testFable.serviceManager.services.DatabaseService.Hash).to.equal('PrimaryConnection');
190
190
 
191
- testFable.serviceManager.defaultServices.DatabaseService.connect();
192
- testFable.serviceManager.defaultServices.DatabaseService.commit('Test Record');
191
+ testFable.serviceManager.services.DatabaseService.connect();
192
+ testFable.serviceManager.services.DatabaseService.commit('Test Record');
193
193
 
194
194
  testFable.serviceManager.setDefaultServiceInstantiation('DatabaseService', 'SecondaryConnection');
195
195
 
196
- testFable.serviceManager.defaultServices.DatabaseService.connect();
197
- testFable.serviceManager.defaultServices.DatabaseService.commit('Another Test Record');
196
+ testFable.serviceManager.services.DatabaseService.connect();
197
+ testFable.serviceManager.services.DatabaseService.commit('Another Test Record');
198
198
 
199
- Expect(testFable.serviceManager.defaultServices.DatabaseService.Hash).to.equal('SecondaryConnection');
199
+ Expect(testFable.serviceManager.services.DatabaseService.Hash).to.equal('SecondaryConnection');
200
200
  }
201
201
  );
202
202
 
@@ -241,10 +241,10 @@ suite
241
241
 
242
242
  testFable.serviceManager.connectPreinitServiceProviderInstance(tmpCoreService);
243
243
 
244
- Expect(testFable.services.MockCoreService['MockCoreService-2']).to.be.an('object');
245
- Expect(testFable.defaultServices.MockCoreService).to.be.an('object');
244
+ Expect(testFable.serviceMap.MockCoreService['MockCoreService-2']).to.be.an('object');
245
+ Expect(testFable.services.MockCoreService).to.be.an('object');
246
246
 
247
- Expect(testFable.defaultServices.MockCoreService.fable.log).to.be.an('object');
247
+ Expect(testFable.services.MockCoreService.fable.log).to.be.an('object');
248
248
  }
249
249
  )
250
250
 
@@ -259,25 +259,25 @@ suite
259
259
  testFable.serviceManager.addServiceType('DatabaseService', MockDatabaseService);
260
260
 
261
261
  testFable.serviceManager.instantiateServiceProvider('SimpleService', { SomeOption: true });
262
- testFable.serviceManager.defaultServices.SimpleService.doSomething();
262
+ testFable.serviceManager.services.SimpleService.doSomething();
263
263
 
264
264
  testFable.serviceManager.instantiateServiceProvider('DatabaseService', { ConnectionString: 'mongodb://localhost:27017/test' }, 'PrimaryConnection');
265
265
 
266
- Expect(testFable.serviceManager.defaultServices.DatabaseService.Hash).to.equal('PrimaryConnection');
266
+ Expect(testFable.serviceManager.services.DatabaseService.Hash).to.equal('PrimaryConnection');
267
267
 
268
268
  testFable.serviceManager.instantiateServiceProvider('DatabaseService', { ConnectionString: 'mongodb://localhost:27017/test' }, 'SecondaryConnection');
269
269
 
270
- Expect(testFable.serviceManager.defaultServices.DatabaseService.Hash).to.equal('PrimaryConnection');
270
+ Expect(testFable.serviceManager.services.DatabaseService.Hash).to.equal('PrimaryConnection');
271
271
 
272
- testFable.serviceManager.defaultServices.DatabaseService.connect();
273
- testFable.serviceManager.defaultServices.DatabaseService.commit('Test Record');
272
+ testFable.serviceManager.services.DatabaseService.connect();
273
+ testFable.serviceManager.services.DatabaseService.commit('Test Record');
274
274
 
275
275
  Expect(testFable.serviceManager.setDefaultServiceInstantiation('DatabaseService', 'TertiaryConnection')).to.be.false;
276
276
 
277
- testFable.serviceManager.defaultServices.DatabaseService.connect();
278
- testFable.serviceManager.defaultServices.DatabaseService.commit('Another Test Record');
277
+ testFable.serviceManager.services.DatabaseService.connect();
278
+ testFable.serviceManager.services.DatabaseService.commit('Another Test Record');
279
279
 
280
- Expect(testFable.serviceManager.defaultServices.DatabaseService.Hash).to.equal('PrimaryConnection');
280
+ Expect(testFable.serviceManager.services.DatabaseService.Hash).to.equal('PrimaryConnection');
281
281
  }
282
282
  );
283
283
  }
@@ -106,7 +106,7 @@ suite
106
106
  .to.equal('ApplicationNameHere');
107
107
  Expect(testFable.settings.ProductVersion)
108
108
  .to.equal('0.0.0');
109
- testFable.defaultServices.SettingsManager.merge({Product:'TestProduct'});
109
+ testFable.services.SettingsManager.merge({Product:'TestProduct'});
110
110
  Expect(testFable.settings.Product)
111
111
  .to.equal('TestProduct');
112
112
  Expect(testFable.settings.ProductVersion)