Comparing version 0.0.5 to 0.0.6
{ | ||
"name": "typemoq", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "A simple mocking library for TypeScript", | ||
@@ -19,3 +19,3 @@ "author": "Florin Nitoi <florin.nitoi@gmail.com>", | ||
"library", | ||
"sandbox", | ||
"sandbox", | ||
"typescript", | ||
@@ -54,3 +54,3 @@ "javascript" | ||
"karma-mocha": "^0.1.9", | ||
"karma-phantomjs-launcher": "^0.1.4", | ||
"karma-sauce-launcher": "^0.2.10", | ||
"main-bower-files": "^2.4.0", | ||
@@ -57,0 +57,0 @@ "mocha": "^2.0.1", |
@@ -8,3 +8,6 @@ TypeMoq [![build badge](https://travis-ci.org/florinn/typemoq.svg?branch=master)](https://travis-ci.org/florinn/typemoq) | ||
[![Sauce Test Status](https://saucelabs.com/browser-matrix/florinn.svg)](https://saucelabs.com/u/florinn) | ||
---------- | ||
Features | ||
@@ -38,2 +41,5 @@ ------------- | ||
**Note:** To be able to use TypeMoq, your project should target **ECMAScript 5** or above | ||
Usage | ||
@@ -40,0 +46,0 @@ ------------- |
@@ -1,2 +0,1 @@ | ||
var TypeMoq;!function(e){var t=function(){function e(){}return e.IMATCH_ID_VALUE="438A51D3-6864-49D7-A655-CA1153B86965",e.IMATCH_ID_NAME="___id",e.IMATCH_MATCHES_NAME="___matches",e}();e.Cons=t}(TypeMoq||(TypeMoq={}));var TypeMoq;!function(e){var t=function(){function e(){}return e}();e.CurrentInterceptContext=t}(TypeMoq||(TypeMoq={}));var TypeMoq;!function(e){!function(e){e[e.Class=0]="Class",e[e.Function=1]="Function",e[e.Value=2]="Value"}(e.GlobalType||(e.GlobalType={}));var t=(e.GlobalType,function(){function t(e,t,n,r){this.mock=e,this._name=t,this._type=n,this.container=r}return t.ofInstance=function(n,r,o,i){void 0===o&&(o=window),void 0===i&&(i=0);var u=e.Mock.ofInstance(n,i),a=_.isFunction(n)?1:2;return new t(u,r,a,o)},t.ofType=function(n,r,o){void 0===r&&(r=window),void 0===o&&(o=0);var i=new n,u=e.Mock.ofInstance(i,o);return new t(u,name,0,r)},Object.defineProperty(t.prototype,"object",{get:function(){return this.mock.object},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this._name||this.mock.name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"behavior",{get:function(){return this.mock.behavior},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"callBase",{get:function(){return this.mock.callBase},set:function(e){this.mock.callBase=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"type",{get:function(){return this._type},enumerable:!0,configurable:!0}),t.prototype.setup=function(e){return this.mock.setup(e)},t.prototype.verify=function(e,t){this.mock.verify(e,t)},t.prototype.verifyAll=function(){this.mock.verifyAll()},t}());e.GlobalMock=t}(TypeMoq||(TypeMoq={}));var TypeMoq;!function(e){var t=function(){function e(){}return e.getOwnEnumerables=function(e){return this._getPropertyNames(e,!0,!1,this._enumerable)},e.getOwnNonenumerables=function(e){return this._getPropertyNames(e,!0,!1,this._notEnumerable)},e.getOwnEnumerablesAndNonenumerables=function(e){return this._getPropertyNames(e,!0,!1,this._enumerableAndNotEnumerable)},e.getPrototypeEnumerables=function(e){return this._getPropertyNames(e,!1,!0,this._enumerable)},e.getPrototypeNonenumerables=function(e){return this._getPropertyNames(e,!1,!0,this._notEnumerable)},e.getPrototypeEnumerablesAndNonenumerables=function(e){return this._getPropertyNames(e,!1,!0,this._enumerableAndNotEnumerable)},e.getOwnAndPrototypeEnumerables=function(e){return this._getPropertyNames(e,!0,!0,this._enumerable)},e.getOwnAndPrototypeNonenumerables=function(e){return this._getPropertyNames(e,!0,!0,this._notEnumerable)},e.getOwnAndPrototypeEnumerablesAndNonenumerables=function(e){return this._getPropertyNames(e,!0,!0,this._enumerableAndNotEnumerable)},e._enumerable=function(e,t){return e.propertyIsEnumerable(t)},e._notEnumerable=function(e,t){return!e.propertyIsEnumerable(t)},e._enumerableAndNotEnumerable=function(){return!0},e._getPropertyNames=function(e,t,n,r){var o=[];do{if(t){var i=Object.getOwnPropertyNames(e);_.forEach(i,function(t){var n=_.find(o,function(e){return e.name===t});if(!n&&r(e,t)){var i=Object.getOwnPropertyDescriptor(e,t);o.push({name:t,desc:i})}})}if(!n)break;t=!0}while(e=Object.getPrototypeOf(e));return o},e}();e.PropertyRetriever=t}(TypeMoq||(TypeMoq={}));var TypeMoq;!function(e){var t=function(){function e(){}return e.getUUID=function(){var e=(new Date).getTime(),t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"==t?n:3&n|8).toString(16)});return t},e.functionName=function(e){var t=e.toString();return t=t.substr("function ".length),t=t.substr(0,t.indexOf("("))},e.conthunktor=function(e,t){return function(){var n,r,o=function(){};return o.prototype=e.prototype,n=new o,_.isFunction(e)&&(r=e.apply(n,t)),_.isObject(r)?r:n}()},e}();e.Utils=t}(TypeMoq||(TypeMoq={}));var TypeMoq;!function(e){var t;!function(e){var t=function(){function e(e,t){this.name=e,this.message=t}return e.prototype.toString=function(){return name},e}();e.Exception=t}(t=e.Error||(e.Error={}))}(TypeMoq||(TypeMoq={}));var __extends=this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);n.prototype=t.prototype,e.prototype=new n},TypeMoq;!function(e){var t;!function(e){!function(e){e[e.NoSetup=0]="NoSetup",e[e.MoreThanOneSetupExpression=1]="MoreThanOneSetupExpression",e[e.InvalidSetupExpression=2]="InvalidSetupExpression",e[e.InvalidMatcher=3]="InvalidMatcher",e[e.InvalidProxyArgument=4]="InvalidProxyArgument",e[e.UnknownGlobalType=5]="UnknownGlobalType",e[e.VerificationFailed=6]="VerificationFailed",e[e.MoreThanOneCall=7]="MoreThanOneCall",e[e.MoreThanNCalls=8]="MoreThanNCalls"}(e.MockExceptionReason||(e.MockExceptionReason={}));var t=(e.MockExceptionReason,function(e){function t(t,n,r,o){void 0===r&&(r="Mock Exception"),e.call(this,r,o),this.reason=t,this.ctx=n}return __extends(t,e),t}(e.Exception));e.MockException=t}(t=e.Error||(e.Error={}))}(TypeMoq||(TypeMoq={}));var TypeMoq;!function(e){var t;!function(t){var n=function(){function t(t){this._ctor=t,this.___id=e.Cons.IMATCH_ID_VALUE}return t.prototype.___matches=function(e){var t=!1;return this._ctor.prototype===e.constructor.prototype&&(t=!0),t},t}();t.MatchAnyObject=n;var r=function(){function t(){this.___id=e.Cons.IMATCH_ID_VALUE}return t.prototype.___matches=function(e){var t=!1;return _.isUndefined(e)||(t=!0),t},t}();t.MatchAny=r;var o=function(){function t(){this.___id=e.Cons.IMATCH_ID_VALUE}return t.prototype.___matches=function(e){var t=!1;return _.isString(e)&&(t=!0),t},t}();t.MatchAnyString=o;var i=function(){function t(){this.___id=e.Cons.IMATCH_ID_VALUE}return t.prototype.___matches=function(e){var t=!1;return _.isNumber(e)&&(t=!0),t},t}();t.MatchAnyNumber=i}(t=e.Match||(e.Match={}))}(TypeMoq||(TypeMoq={}));var TypeMoq;!function(e){var t;!function(t){var n=function(){function t(t){this._value=t,this.___id=e.Cons.IMATCH_ID_VALUE}return t.prototype.___matches=function(e){var t=!1;return _.isEqual(this._value,e)&&(t=!0),t},t}();t.MatchValue=n}(t=e.Match||(e.Match={}))}(TypeMoq||(TypeMoq={}));var TypeMoq;!function(e){var t;!function(e){var t=function(){function e(e,t){this._property=e,this._args=t}return Object.defineProperty(e.prototype,"args",{get:function(){return this._args||{length:0,callee:null}},set:function(e){this._args=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"property",{get:function(){return this._property},enumerable:!0,configurable:!0}),e.prototype.invokeBase=function(){this.returnValue=this._property.toFunc.apply(this._property.obj,this._args)},e}();e.MethodInvocation=t;var n=function(){function e(e,t){this._property=e,this.returnValue=t}return Object.defineProperty(e.prototype,"args",{get:function(){var e=[];return Object.defineProperty(e,"callee",{configurable:!1,enumerable:!0,writable:!1,value:null}),e},set:function(){},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"property",{get:function(){return this._property},enumerable:!0,configurable:!0}),e.prototype.invokeBase=function(){},e}();e.GetterInvocation=n;var r=function(){function e(e,t){this._property=e,this._args=t}return Object.defineProperty(e.prototype,"args",{get:function(){return this._args},set:function(e){this._args=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"property",{get:function(){return this._property},enumerable:!0,configurable:!0}),e.prototype.invokeBase=function(){this.returnValue=this._property.obj[this._property.name]=this._args[0]},e}();e.SetterInvocation=r;var o=function(){function e(e,t){this.obj=e,this.name=t}return Object.defineProperty(e.prototype,"toFunc",{get:function(){var e;return e=_.isFunction(this.obj)?this.obj:this.obj[this.name]},enumerable:!0,configurable:!0}),e}();e.MethodInfo=o;var i=function(){function e(e,t){this.obj=e,this.name=t}return e}();e.PropertyInfo=i}(t=e.Proxy||(e.Proxy={}))}(TypeMoq||(TypeMoq={}));var TypeMoq;!function(e){var t;!function(t){var n=function(){function n(t,n){var r=this;this.check(n);var o=this,i=e.PropertyRetriever.getOwnAndPrototypeEnumerablesAndNonenumerables(n);_.each(i,function(e){if(_.isFunction(e.desc.value)){var i={configurable:e.desc.configurable,enumerable:e.desc.enumerable,writable:e.desc.writable};r.defineMethodProxy(o,t,n,e.name,i)}else{var i={configurable:e.desc.configurable,enumerable:e.desc.enumerable};r.definePropertyProxy(o,t,n,e.name,e.desc.value,i)}})}return n.of=function(t,r){n.check(t);var o;if(_.isFunction(t)){var i=e.Utils.functionName(t);o=n.methodProxyValue(r,t,i)}else o=new n(r,t);return o},n.check=function(e){n.checkNotNull(e);var t=!1;if((_.isFunction(e)||_.isObject(e)&&!n.isPrimitiveObject(e))&&(t=!0),!t)throw new error.MockException(4,e,"InvalidProxyArgument Exception","Argument should be a function or a non primitive object")},n.prototype.check=function(e){n.checkNotNull(e);var t=!1;if(_.isFunction(e)||!_.isObject(e)||n.isPrimitiveObject(e)||(t=!0),!t)throw new error.MockException(4,e,"InvalidProxyArgument Exception","Argument should be a non primitive object")},n.checkNotNull=function(e){if(_.isNull(e))throw new error.MockException(4,e,"InvalidProxyArgument Exception","Argument cannot be null")},n.isPrimitiveObject=function(e){var t=!1;return(_.isFunction(e)||_.isArray(e)||_.isDate(e)||_.isNull(e))&&(t=!0),t},n.prototype.defineMethodProxy=function(e,t,r,o,i){void 0===i&&(i={configurable:!1,enumerable:!0,writable:!1}),i.value=n.methodProxyValue(t,r,o),this.defineProperty(e,o,i)},n.methodProxyValue=function(e,n,r){return function(){var o=new t.MethodInfo(n,r),i=new t.MethodInvocation(o,arguments);return e.intercept(i),i.returnValue}},n.prototype.definePropertyProxy=function(e,n,r,o,i,u){void 0===u&&(u={configurable:!1,enumerable:!0}),u.get=function(){var e=new t.PropertyInfo(r,o),u=new t.GetterInvocation(e,i);return n.intercept(u),u.returnValue},u.set=function(){var e=new t.PropertyInfo(r,o),i=new t.SetterInvocation(e,arguments);n.intercept(i)},this.defineProperty(e,o,u)},n.prototype.defineProperty=function(e,t,n){try{Object.defineProperty(e,t,n)}catch(r){console.log(r.message)}},n}();t.Proxy=n}(t=e.Proxy||(e.Proxy={}))}(TypeMoq||(TypeMoq={}));var TypeMoq;!function(e){var t;!function(e){var t=function(){function t(){}return t.prototype.createProxy=function(t,n){var r=e.Proxy.of(n,t);return r},t}();e.ProxyFactory=t}(t=e.Proxy||(e.Proxy={}))}(TypeMoq||(TypeMoq={}));var TypeMoq;!function(e){!function(e){e[e.Continue=0]="Continue",e[e.Stop=1]="Stop"}(e.InterceptionAction||(e.InterceptionAction={}));var t=(e.InterceptionAction,function(){function e(e,t){this.behavior=e,this.mock=t,this._actualInvocations=[],this._orderedCalls=[]}return e.prototype.addInvocation=function(e){this._actualInvocations.push(e)},e.prototype.actualInvocations=function(){return this._actualInvocations},e.prototype.clearInvocations=function(){this._actualInvocations=[]},e.prototype.addOrderedCall=function(e){this._orderedCalls.push(e)},e.prototype.removeOrderedCall=function(e){_.filter(this._orderedCalls,function(t){return t.id!==e.id})},e.prototype.orderedCalls=function(){return this._orderedCalls},e}());e.InterceptorContext=t}(TypeMoq||(TypeMoq={}));var TypeMoq;!function(e){var t=function(){function t(t,n){this._interceptorContext=new e.InterceptorContext(t,n)}return Object.defineProperty(t.prototype,"interceptorContext",{get:function(){return this._interceptorContext},enumerable:!0,configurable:!0}),t.prototype.intercept=function(t){var n=this,r=new e.CurrentInterceptContext;_.some(this.interceptionStrategies(),function(e){return 1===e.handleIntercept(t,n.interceptorContext,r)?!0:void 0})},t.prototype.addCall=function(e){this._interceptorContext.addOrderedCall(e)},t.prototype.verifyCall=function(e,t){var n=this._interceptorContext.actualInvocations(),r=_.filter(n,function(t){return e.matches(t)}).length;t.verify(r)||this.throwVerifyCallException(e.setupCall,t)},t.prototype.verify=function(){var t=this._interceptorContext.orderedCalls(),n=_.filter(t,function(e){return e.isVerifiable}),r=_.filter(t,function(e){return e.isVerifiable&&e.isInvoked}),o=e.Times.exactly(n.length);o.verify(r.length)||this.throwVerifyException(n,o)},t.prototype.interceptionStrategies=function(){var t=[new e.AddActualInvocation,new e.ExtractProxyCall,new e.ExecuteCall,new e.InvokeBase,new e.HandleMockRecursion];return t},t.prototype.throwVerifyCallException=function(e,t){var n=new error.MockException(6,e,"VerifyCall Exception",t.failMessage);throw n},t.prototype.throwVerifyException=function(e,t){var n=new error.MockException(6,e,"Verify Exception",t.failMessage);throw n},t}();e.InterceptorExecute=t}(TypeMoq||(TypeMoq={}));var TypeMoq;!function(e){var t=function(){function e(){}return Object.defineProperty(e.prototype,"interceptedCall",{get:function(){return this._interceptedCall},enumerable:!0,configurable:!0}),e.prototype.intercept=function(e){if(this._interceptedCall)throw new error.MockException(1,e,"MoreThanOneSetupExpression Exception","Setup should contain only one expression");this._interceptedCall=e},e}();e.InterceptorSetup=t}(TypeMoq||(TypeMoq={}));var TypeMoq;!function(e){var t=function(){function e(){}return e.prototype.handleIntercept=function(e,t){return t.addInvocation(e),0},e}();e.AddActualInvocation=t;var n=function(){function e(){}return e.prototype.handleIntercept=function(e,t,n){var r=t.orderedCalls().reverse();if(n.call=_.find(r,function(t){return t.matches(e)}),null!=n.call)n.call.evaluatedSuccessfully();else if(1==t.behavior)throw new error.MockException(0,e);return 0},e}();e.ExtractProxyCall=n;var r=function(){function e(){}return e.prototype.handleIntercept=function(e,t,n){this._ctx=t;var r=n.call;return null!=r?(r.execute(e),1):0},e}();e.ExecuteCall=r;var o=function(){function e(){}return e.prototype.handleIntercept=function(e,t){return t.mock.callBase?(e.invokeBase(),1):0},e}();e.InvokeBase=o;var i=function(){function e(){}return e.prototype.handleIntercept=function(){return 0},e}();e.HandleMockRecursion=i}(TypeMoq||(TypeMoq={}));var TypeMoq;!function(e){var t=function(){function e(){}return e.isValue=function(e){var t=new match.MatchValue(e);return t},e.isAnyObject=function(e){var t=new match.MatchAnyObject(e);return t},e.isAny=function(){var e=new match.MatchAny;return e},e.isAnyString=function(){var e=new match.MatchAnyString;return e},e.isAnyNumber=function(){var e=new match.MatchAnyNumber;return e},e}();e.It=t}(TypeMoq||(TypeMoq={}));var TypeMoq;!function(e){var t=function(){function t(t,n){this.mock=t,this._setupExpression=n,this._id=this.generateId();var r=new e.InterceptorSetup,o=e.Mock.proxyFactory.createProxy(r,t.instance);if(n(o),!r.interceptedCall)throw new error.MockException(2,this._setupExpression,"InvalidSetupExpression Exception","Invalid setup expression");var i=r.interceptedCall,u=this.transformToMatchers(i.args);Object.defineProperty(u,"callee",{configurable:!1,enumerable:!0,writable:!1,value:i.args.callee}),i.args=u,this._setupCall=i}return t.prototype.generateId=function(){return"MethodCall<"+_.uniqueId()+">"},t.prototype.transformToMatchers=function(t){var n=[];return _.each(t,function(t){if(_.isObject(t)){if(_.isUndefined(t[e.Cons.IMATCH_MATCHES_NAME])||_.isUndefined(t[e.Cons.IMATCH_ID_NAME])||t[e.Cons.IMATCH_ID_NAME]!==e.Cons.IMATCH_ID_VALUE)throw new error.MockException(3,t,"InvalidMatcher Exception","Invalid match object");n.push(t)}else{var r=new match.MatchValue(t);n.push(r)}}),n},Object.defineProperty(t.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"callCount",{get:function(){return this._callCount},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"setupExpression",{get:function(){return this._setupExpression},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"setupCall",{get:function(){return this._setupCall},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isVerifiable",{get:function(){return this._isVerifiable},enumerable:!0,configurable:!0}),t.prototype.evaluatedSuccessfully=function(){this._evaluatedSuccessfully=!0},t.prototype.matches=function(e){var t=!1;return this._setupCall.property&&e&&e.property&&this._setupCall.property.name===e.property.name&&this._setupCall.args.length===e.args.length&&(t=!0,_.each(this.setupCall.args,function(n,r){var o=n,i=e.args[r];t&&!o.___matches(i)&&(t=!1)})),t},t.prototype.execute=function(t){if(this.isInvoked=!0,null!=this._setupCallback&&this._setupCallback.apply(this,t.args),null!=this._thrownException)throw this._thrownException;if(this._callCount++,this._isOnce){var n=e.Times.atMostOnce();if(!n.verify(this._callCount))throw new error.MockException(7,this,"MoreThanOneCall Exception",n.failMessage)}if(this._expectedCallCount){var n=e.Times.exactly(this._expectedCallCount);if(!n.verify(this._callCount))throw new error.MockException(8,this,"MoreThanNCalls Exception",n.failMessage)}},t.prototype.verifiable=function(e){this._isVerifiable=!0,null!=e&&(this.failMessage=e)},t}();e.MethodCall=t}(TypeMoq||(TypeMoq={}));var __extends=this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);n.prototype=t.prototype,e.prototype=new n},TypeMoq;!function(e){var t=function(e){function t(t,n){e.call(this,t,n)}return __extends(t,e),t.prototype.execute=function(t){e.prototype.execute.call(this,t),this._callBase?t.invokeBase():this.hasReturnValue&&(t.returnValue=this._returnValueFunc.apply(this,t.args))},t.prototype.callback=function(e){return this._setupCallback=e,this},t.prototype["throws"]=function(e){return this._thrownException=e,this},t.prototype.returns=function(e){return this._returnValueFunc=e,this.hasReturnValue=!0,this},t.prototype.callBase=function(){return this._callBase=!0,this},t}(e.MethodCall);e.MethodCallReturn=t}(TypeMoq||(TypeMoq={}));var TypeMoq;!function(e){!function(e){e[e.Loose=0]="Loose",e[e.Strict=1]="Strict"}(e.MockBehavior||(e.MockBehavior={}));var t=(e.MockBehavior,function(){function t(n,r){void 0===r&&(r=0),this.instance=n,this._behavior=r,this._id=this.generateId(),this._name=this.getNameOf(n),this._interceptor=new e.InterceptorExecute(this._behavior,this),this._proxy=t.proxyFactory.createProxy(this._interceptor,n)}return t.ofInstance=function(e,n){void 0===n&&(n=0);var r=new t(e,n);return r},t.ofType=function(e,n){void 0===n&&(n=0);for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];var i=t.ofType2(e,r,n);return i},t.ofType2=function(n,r,o){void 0===o&&(o=0);var i=e.Utils.conthunktor(n,r),u=new t(i,o);return u},Object.defineProperty(t.prototype,"object",{get:function(){return this._proxy},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this._name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"behavior",{get:function(){return this._behavior},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"callBase",{get:function(){return this._callBase},set:function(e){this._callBase=e},enumerable:!0,configurable:!0}),t.prototype.generateId=function(){return"Mock<"+_.uniqueId()+">"},t.prototype.getNameOf=function(t){var n;if(_.isFunction(t))n=e.Utils.functionName(t);else if(_.isObject(t)){var r=t.constructor;n=e.Utils.functionName(r)}return n&&(n=n.trim()),n},t.prototype.setup=function(t){var n=new e.MethodCallReturn(this,t);return this._interceptor.addCall(n),n},t.prototype.verify=function(t,n){var r=new e.MethodCall(this,t);this._interceptor.addCall(r);try{this._interceptor.verifyCall(r,n)}catch(o){throw o}},t.prototype.verifyAll=function(){try{this._interceptor.verify()}catch(e){throw e}},t.proxyFactory=new e.Proxy.ProxyFactory,t}());e.Mock=t}(TypeMoq||(TypeMoq={}));var TypeMoq;!function(e){var t=function(){function e(e,t,n,r){this._condition=e,this._from=t,this._to=n,this._failMessage=_.template(r)}return Object.defineProperty(e.prototype,"failMessage",{get:function(){return this._failMessage({n:this._from,m:this._lastCallCount})},enumerable:!0,configurable:!0}),e.prototype.verify=function(e){return this._lastCallCount=e,this._condition(e)},e.exactly=function(t){return new e(function(e){return e===t},t,t,e.NO_MATCHING_CALLS_EXACTLY_N_TIMES)},e.never=function(){return e.exactly(0)},e.once=function(){return e.exactly(1)},e.atLeastOnce=function(){return new e(function(e){return e>=1},1,Number.MAX_VALUE,e.NO_MATCHING_CALLS_AT_LEAST_ONCE)},e.atMostOnce=function(){return new e(function(e){return e>=0&&1>=e},0,1,e.NO_MATCHING_CALLS_AT_MOST_ONCE)},e.NO_MATCHING_CALLS_EXACTLY_N_TIMES="Expected invocation on the mock <%= n %> times, invoked <%= m %> times",e.NO_MATCHING_CALLS_AT_LEAST_ONCE="Expected invocation on the mock at least once",e.NO_MATCHING_CALLS_AT_MOST_ONCE="Expected invocation on the mock at most once",e}();e.Times=t}(TypeMoq||(TypeMoq={}));var error=TypeMoq.Error,match=TypeMoq.Match,proxy=TypeMoq.Proxy,TypeMoq;!function(e){var t=function(){function t(e){this._args=e}return t.using=function(){for(var e=[],n=0;n<arguments.length;n++)e[n-0]=arguments[n];var r=new t(e);return r},t.prototype["with"]=function(t){var n=[];try{_.each(this._args,function(t){if(!_.isUndefined(t.container[t.name])){var r=e.PropertyRetriever.getOwnAndPrototypeEnumerablesAndNonenumerables(t.container),o=_.find(r,function(e){return e.name===t.name});n[t.name]=o.desc;var i={};switch(t.type){case 0:i.value=function(){return t.mock.object};break;case 1:i.value=t.mock.object;break;case 2:i.get=function(){return t.mock.object};break;default:throw new error.MockException(5,t,"UnknownGlobalType Exception","unknown global type: "+t.type)}Object.defineProperty(t.container,t.name,i)}}),t.apply(this,this._args)}finally{_.each(this._args,function(e){if(!_.isUndefined(e.mock.instance)){var t=n[e.name];switch(e.type){case 0:break;case 1:break;case 2:t.configurable=!0}Object.defineProperty(e.container,e.name,t)}})}},t}();e.GlobalScope=t}(TypeMoq||(TypeMoq={})),function(){var e=this,t=e._,n=Array.prototype,r=Object.prototype,o=Function.prototype,i=n.push,u=n.slice,a=n.concat,c=r.toString,l=r.hasOwnProperty,s=Array.isArray,f=Object.keys,p=o.bind,h=function(e){return e instanceof h?e:this instanceof h?void(this._wrapped=e):new h(e)};"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=h),exports._=h):e._=h,h.VERSION="1.7.0";var y=function(e,t,n){if(void 0===t)return e;switch(null==n?3:n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)};case 4:return function(n,r,o,i){return e.call(t,n,r,o,i)}}return function(){return e.apply(t,arguments)}};h.iteratee=function(e,t,n){return null==e?h.identity:h.isFunction(e)?y(e,t,n):h.isObject(e)?h.matches(e):h.property(e)},h.each=h.forEach=function(e,t,n){if(null==e)return e;t=y(t,n);var r,o=e.length;if(o===+o)for(r=0;o>r;r++)t(e[r],r,e);else{var i=h.keys(e);for(r=0,o=i.length;o>r;r++)t(e[i[r]],i[r],e)}return e},h.map=h.collect=function(e,t,n){if(null==e)return[];t=h.iteratee(t,n);for(var r,o=e.length!==+e.length&&h.keys(e),i=(o||e).length,u=Array(i),a=0;i>a;a++)r=o?o[a]:a,u[a]=t(e[r],r,e);return u};var v="Reduce of empty array with no initial value";h.reduce=h.foldl=h.inject=function(e,t,n,r){null==e&&(e=[]),t=y(t,r,4);var o,i=e.length!==+e.length&&h.keys(e),u=(i||e).length,a=0;if(arguments.length<3){if(!u)throw new TypeError(v);n=e[i?i[a++]:a++]}for(;u>a;a++)o=i?i[a]:a,n=t(n,e[o],o,e);return n},h.reduceRight=h.foldr=function(e,t,n,r){null==e&&(e=[]),t=y(t,r,4);var o,i=e.length!==+e.length&&h.keys(e),u=(i||e).length;if(arguments.length<3){if(!u)throw new TypeError(v);n=e[i?i[--u]:--u]}for(;u--;)o=i?i[u]:u,n=t(n,e[o],o,e);return n},h.find=h.detect=function(e,t,n){var r;return t=h.iteratee(t,n),h.some(e,function(e,n,o){return t(e,n,o)?(r=e,!0):void 0}),r},h.filter=h.select=function(e,t,n){var r=[];return null==e?r:(t=h.iteratee(t,n),h.each(e,function(e,n,o){t(e,n,o)&&r.push(e)}),r)},h.reject=function(e,t,n){return h.filter(e,h.negate(h.iteratee(t)),n)},h.every=h.all=function(e,t,n){if(null==e)return!0;t=h.iteratee(t,n);var r,o,i=e.length!==+e.length&&h.keys(e),u=(i||e).length;for(r=0;u>r;r++)if(o=i?i[r]:r,!t(e[o],o,e))return!1;return!0},h.some=h.any=function(e,t,n){if(null==e)return!1;t=h.iteratee(t,n);var r,o,i=e.length!==+e.length&&h.keys(e),u=(i||e).length;for(r=0;u>r;r++)if(o=i?i[r]:r,t(e[o],o,e))return!0;return!1},h.contains=h.include=function(e,t){return null==e?!1:(e.length!==+e.length&&(e=h.values(e)),h.indexOf(e,t)>=0)},h.invoke=function(e,t){var n=u.call(arguments,2),r=h.isFunction(t);return h.map(e,function(e){return(r?t:e[t]).apply(e,n)})},h.pluck=function(e,t){return h.map(e,h.property(t))},h.where=function(e,t){return h.filter(e,h.matches(t))},h.findWhere=function(e,t){return h.find(e,h.matches(t))},h.max=function(e,t,n){var r,o,i=-1/0,u=-1/0;if(null==t&&null!=e){e=e.length===+e.length?e:h.values(e);for(var a=0,c=e.length;c>a;a++)r=e[a],r>i&&(i=r)}else t=h.iteratee(t,n),h.each(e,function(e,n,r){o=t(e,n,r),(o>u||o===-1/0&&i===-1/0)&&(i=e,u=o)});return i},h.min=function(e,t,n){var r,o,i=1/0,u=1/0;if(null==t&&null!=e){e=e.length===+e.length?e:h.values(e);for(var a=0,c=e.length;c>a;a++)r=e[a],i>r&&(i=r)}else t=h.iteratee(t,n),h.each(e,function(e,n,r){o=t(e,n,r),(u>o||1/0===o&&1/0===i)&&(i=e,u=o)});return i},h.shuffle=function(e){for(var t,n=e&&e.length===+e.length?e:h.values(e),r=n.length,o=Array(r),i=0;r>i;i++)t=h.random(0,i),t!==i&&(o[i]=o[t]),o[t]=n[i];return o},h.sample=function(e,t,n){return null==t||n?(e.length!==+e.length&&(e=h.values(e)),e[h.random(e.length-1)]):h.shuffle(e).slice(0,Math.max(0,t))},h.sortBy=function(e,t,n){return t=h.iteratee(t,n),h.pluck(h.map(e,function(e,n,r){return{value:e,index:n,criteria:t(e,n,r)}}).sort(function(e,t){var n=e.criteria,r=t.criteria;if(n!==r){if(n>r||void 0===n)return 1;if(r>n||void 0===r)return-1}return e.index-t.index}),"value")};var _=function(e){return function(t,n,r){var o={};return n=h.iteratee(n,r),h.each(t,function(r,i){var u=n(r,i,t);e(o,r,u)}),o}};h.groupBy=_(function(e,t,n){h.has(e,n)?e[n].push(t):e[n]=[t]}),h.indexBy=_(function(e,t,n){e[n]=t}),h.countBy=_(function(e,t,n){h.has(e,n)?e[n]++:e[n]=1}),h.sortedIndex=function(e,t,n,r){n=h.iteratee(n,r,1);for(var o=n(t),i=0,u=e.length;u>i;){var a=i+u>>>1;n(e[a])<o?i=a+1:u=a}return i},h.toArray=function(e){return e?h.isArray(e)?u.call(e):e.length===+e.length?h.map(e,h.identity):h.values(e):[]},h.size=function(e){return null==e?0:e.length===+e.length?e.length:h.keys(e).length},h.partition=function(e,t,n){t=h.iteratee(t,n);var r=[],o=[];return h.each(e,function(e,n,i){(t(e,n,i)?r:o).push(e)}),[r,o]},h.first=h.head=h.take=function(e,t,n){return null==e?void 0:null==t||n?e[0]:0>t?[]:u.call(e,0,t)},h.initial=function(e,t,n){return u.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))},h.last=function(e,t,n){return null==e?void 0:null==t||n?e[e.length-1]:u.call(e,Math.max(e.length-t,0))},h.rest=h.tail=h.drop=function(e,t,n){return u.call(e,null==t||n?1:t)},h.compact=function(e){return h.filter(e,h.identity)};var g=function(e,t,n,r){if(t&&h.every(e,h.isArray))return a.apply(r,e);for(var o=0,u=e.length;u>o;o++){var c=e[o];h.isArray(c)||h.isArguments(c)?t?i.apply(r,c):g(c,t,n,r):n||r.push(c)}return r};h.flatten=function(e,t){return g(e,t,!1,[])},h.without=function(e){return h.difference(e,u.call(arguments,1))},h.uniq=h.unique=function(e,t,n,r){if(null==e)return[];h.isBoolean(t)||(r=n,n=t,t=!1),null!=n&&(n=h.iteratee(n,r));for(var o=[],i=[],u=0,a=e.length;a>u;u++){var c=e[u];if(t)u&&i===c||o.push(c),i=c;else if(n){var l=n(c,u,e);h.indexOf(i,l)<0&&(i.push(l),o.push(c))}else h.indexOf(o,c)<0&&o.push(c)}return o},h.union=function(){return h.uniq(g(arguments,!0,!0,[]))},h.intersection=function(e){if(null==e)return[];for(var t=[],n=arguments.length,r=0,o=e.length;o>r;r++){var i=e[r];if(!h.contains(t,i)){for(var u=1;n>u&&h.contains(arguments[u],i);u++);u===n&&t.push(i)}}return t},h.difference=function(e){var t=g(u.call(arguments,1),!0,!0,[]);return h.filter(e,function(e){return!h.contains(t,e)})},h.zip=function(e){if(null==e)return[];for(var t=h.max(arguments,"length").length,n=Array(t),r=0;t>r;r++)n[r]=h.pluck(arguments,r);return n},h.object=function(e,t){if(null==e)return{};for(var n={},r=0,o=e.length;o>r;r++)t?n[e[r]]=t[r]:n[e[r][0]]=e[r][1];return n},h.indexOf=function(e,t,n){if(null==e)return-1;var r=0,o=e.length;if(n){if("number"!=typeof n)return r=h.sortedIndex(e,t),e[r]===t?r:-1;r=0>n?Math.max(0,o+n):n}for(;o>r;r++)if(e[r]===t)return r;return-1},h.lastIndexOf=function(e,t,n){if(null==e)return-1;var r=e.length;for("number"==typeof n&&(r=0>n?r+n+1:Math.min(r,n+1));--r>=0;)if(e[r]===t)return r;return-1},h.range=function(e,t,n){arguments.length<=1&&(t=e||0,e=0),n=n||1;for(var r=Math.max(Math.ceil((t-e)/n),0),o=Array(r),i=0;r>i;i++,e+=n)o[i]=e;return o};var m=function(){};h.bind=function(e,t){var n,r;if(p&&e.bind===p)return p.apply(e,u.call(arguments,1));if(!h.isFunction(e))throw new TypeError("Bind must be called on a function");return n=u.call(arguments,2),r=function(){if(!(this instanceof r))return e.apply(t,n.concat(u.call(arguments)));m.prototype=e.prototype;var o=new m;m.prototype=null;var i=e.apply(o,n.concat(u.call(arguments)));return h.isObject(i)?i:o}},h.partial=function(e){var t=u.call(arguments,1);return function(){for(var n=0,r=t.slice(),o=0,i=r.length;i>o;o++)r[o]===h&&(r[o]=arguments[n++]);for(;n<arguments.length;)r.push(arguments[n++]);return e.apply(this,r)}},h.bindAll=function(e){var t,n,r=arguments.length;if(1>=r)throw new Error("bindAll must be passed function names");for(t=1;r>t;t++)n=arguments[t],e[n]=h.bind(e[n],e);return e},h.memoize=function(e,t){var n=function(r){var o=n.cache,i=t?t.apply(this,arguments):r;return h.has(o,i)||(o[i]=e.apply(this,arguments)),o[i]};return n.cache={},n},h.delay=function(e,t){var n=u.call(arguments,2);return setTimeout(function(){return e.apply(null,n)},t)},h.defer=function(e){return h.delay.apply(h,[e,1].concat(u.call(arguments,1)))},h.throttle=function(e,t,n){var r,o,i,u=null,a=0;n||(n={});var c=function(){a=n.leading===!1?0:h.now(),u=null,i=e.apply(r,o),u||(r=o=null)};return function(){var l=h.now();a||n.leading!==!1||(a=l);var s=t-(l-a);return r=this,o=arguments,0>=s||s>t?(clearTimeout(u),u=null,a=l,i=e.apply(r,o),u||(r=o=null)):u||n.trailing===!1||(u=setTimeout(c,s)),i}},h.debounce=function(e,t,n){var r,o,i,u,a,c=function(){var l=h.now()-u;t>l&&l>0?r=setTimeout(c,t-l):(r=null,n||(a=e.apply(i,o),r||(i=o=null)))};return function(){i=this,o=arguments,u=h.now();var l=n&&!r;return r||(r=setTimeout(c,t)),l&&(a=e.apply(i,o),i=o=null),a}},h.wrap=function(e,t){return h.partial(t,e)},h.negate=function(e){return function(){return!e.apply(this,arguments)}},h.compose=function(){var e=arguments,t=e.length-1;return function(){for(var n=t,r=e[t].apply(this,arguments);n--;)r=e[n].call(this,r);return r}},h.after=function(e,t){return function(){return--e<1?t.apply(this,arguments):void 0}},h.before=function(e,t){var n;return function(){return--e>0?n=t.apply(this,arguments):t=null,n}},h.once=h.partial(h.before,2),h.keys=function(e){if(!h.isObject(e))return[];if(f)return f(e);var t=[];for(var n in e)h.has(e,n)&&t.push(n);return t},h.values=function(e){for(var t=h.keys(e),n=t.length,r=Array(n),o=0;n>o;o++)r[o]=e[t[o]];return r},h.pairs=function(e){for(var t=h.keys(e),n=t.length,r=Array(n),o=0;n>o;o++)r[o]=[t[o],e[t[o]]];return r},h.invert=function(e){for(var t={},n=h.keys(e),r=0,o=n.length;o>r;r++)t[e[n[r]]]=n[r];return t},h.functions=h.methods=function(e){var t=[];for(var n in e)h.isFunction(e[n])&&t.push(n);return t.sort()},h.extend=function(e){if(!h.isObject(e))return e;for(var t,n,r=1,o=arguments.length;o>r;r++){t=arguments[r];for(n in t)l.call(t,n)&&(e[n]=t[n])}return e},h.pick=function(e,t,n){var r,o={};if(null==e)return o;if(h.isFunction(t)){t=y(t,n);for(r in e){var i=e[r];t(i,r,e)&&(o[r]=i)}}else{var c=a.apply([],u.call(arguments,1));e=new Object(e);for(var l=0,s=c.length;s>l;l++)r=c[l],r in e&&(o[r]=e[r])}return o},h.omit=function(e,t,n){if(h.isFunction(t))t=h.negate(t); | ||
else{var r=h.map(a.apply([],u.call(arguments,1)),String);t=function(e,t){return!h.contains(r,t)}}return h.pick(e,t,n)},h.defaults=function(e){if(!h.isObject(e))return e;for(var t=1,n=arguments.length;n>t;t++){var r=arguments[t];for(var o in r)void 0===e[o]&&(e[o]=r[o])}return e},h.clone=function(e){return h.isObject(e)?h.isArray(e)?e.slice():h.extend({},e):e},h.tap=function(e,t){return t(e),e};var d=function(e,t,n,r){if(e===t)return 0!==e||1/e===1/t;if(null==e||null==t)return e===t;e instanceof h&&(e=e._wrapped),t instanceof h&&(t=t._wrapped);var o=c.call(e);if(o!==c.call(t))return!1;switch(o){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!==+e?+t!==+t:0===+e?1/+e===1/t:+e===+t;case"[object Date]":case"[object Boolean]":return+e===+t}if("object"!=typeof e||"object"!=typeof t)return!1;for(var i=n.length;i--;)if(n[i]===e)return r[i]===t;var u=e.constructor,a=t.constructor;if(u!==a&&"constructor"in e&&"constructor"in t&&!(h.isFunction(u)&&u instanceof u&&h.isFunction(a)&&a instanceof a))return!1;n.push(e),r.push(t);var l,s;if("[object Array]"===o){if(l=e.length,s=l===t.length)for(;l--&&(s=d(e[l],t[l],n,r)););}else{var f,p=h.keys(e);if(l=p.length,s=h.keys(t).length===l)for(;l--&&(f=p[l],s=h.has(t,f)&&d(e[f],t[f],n,r)););}return n.pop(),r.pop(),s};h.isEqual=function(e,t){return d(e,t,[],[])},h.isEmpty=function(e){if(null==e)return!0;if(h.isArray(e)||h.isString(e)||h.isArguments(e))return 0===e.length;for(var t in e)if(h.has(e,t))return!1;return!0},h.isElement=function(e){return!(!e||1!==e.nodeType)},h.isArray=s||function(e){return"[object Array]"===c.call(e)},h.isObject=function(e){var t=typeof e;return"function"===t||"object"===t&&!!e},h.each(["Arguments","Function","String","Number","Date","RegExp"],function(e){h["is"+e]=function(t){return c.call(t)==="[object "+e+"]"}}),h.isArguments(arguments)||(h.isArguments=function(e){return h.has(e,"callee")}),"function"!=typeof/./&&(h.isFunction=function(e){return"function"==typeof e||!1}),h.isFinite=function(e){return isFinite(e)&&!isNaN(parseFloat(e))},h.isNaN=function(e){return h.isNumber(e)&&e!==+e},h.isBoolean=function(e){return e===!0||e===!1||"[object Boolean]"===c.call(e)},h.isNull=function(e){return null===e},h.isUndefined=function(e){return void 0===e},h.has=function(e,t){return null!=e&&l.call(e,t)},h.noConflict=function(){return e._=t,this},h.identity=function(e){return e},h.constant=function(e){return function(){return e}},h.noop=function(){},h.property=function(e){return function(t){return t[e]}},h.matches=function(e){var t=h.pairs(e),n=t.length;return function(e){if(null==e)return!n;e=new Object(e);for(var r=0;n>r;r++){var o=t[r],i=o[0];if(o[1]!==e[i]||!(i in e))return!1}return!0}},h.times=function(e,t,n){var r=Array(Math.max(0,e));t=y(t,n,1);for(var o=0;e>o;o++)r[o]=t(o);return r},h.random=function(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))},h.now=Date.now||function(){return(new Date).getTime()};var b={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},x=h.invert(b),M=function(e){var t=function(t){return e[t]},n="(?:"+h.keys(e).join("|")+")",r=RegExp(n),o=RegExp(n,"g");return function(e){return e=null==e?"":""+e,r.test(e)?e.replace(o,t):e}};h.escape=M(b),h.unescape=M(x),h.result=function(e,t){if(null==e)return void 0;var n=e[t];return h.isFunction(n)?e[t]():n};var w=0;h.uniqueId=function(e){var t=++w+"";return e?e+t:t},h.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var T=/(.)^/,C={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},A=/\\|'|\r|\n|\u2028|\u2029/g,E=function(e){return"\\"+C[e]};h.template=function(e,t,n){!t&&n&&(t=n),t=h.defaults({},t,h.templateSettings);var r=RegExp([(t.escape||T).source,(t.interpolate||T).source,(t.evaluate||T).source].join("|")+"|$","g"),o=0,i="__p+='";e.replace(r,function(t,n,r,u,a){return i+=e.slice(o,a).replace(A,E),o=a+t.length,n?i+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?i+="'+\n((__t=("+r+"))==null?'':__t)+\n'":u&&(i+="';\n"+u+"\n__p+='"),t}),i+="';\n",t.variable||(i="with(obj||{}){\n"+i+"}\n"),i="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+i+"return __p;\n";try{var u=new Function(t.variable||"obj","_",i)}catch(a){throw a.source=i,a}var c=function(e){return u.call(this,e,h)},l=t.variable||"obj";return c.source="function("+l+"){\n"+i+"}",c},h.chain=function(e){var t=h(e);return t._chain=!0,t};var I=function(e){return this._chain?h(e).chain():e};h.mixin=function(e){h.each(h.functions(e),function(t){var n=h[t]=e[t];h.prototype[t]=function(){var e=[this._wrapped];return i.apply(e,arguments),I.call(this,n.apply(h,e))}})},h.mixin(h),h.each(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var t=n[e];h.prototype[e]=function(){var n=this._wrapped;return t.apply(n,arguments),"shift"!==e&&"splice"!==e||0!==n.length||delete n[0],I.call(this,n)}}),h.each(["concat","join","slice"],function(e){var t=n[e];h.prototype[e]=function(){return I.call(this,t.apply(this._wrapped,arguments))}}),h.prototype.value=function(){return this._wrapped},"function"==typeof define&&define.amd&&define("underscore",[],function(){return h})}.call(this); | ||
var TypeMoq;!function(e){var t=function(){function e(){}return e.IMATCH_ID_VALUE="438A51D3-6864-49D7-A655-CA1153B86965",e.IMATCH_ID_NAME="___id",e.IMATCH_MATCHES_NAME="___matches",e}();e.Cons=t}(TypeMoq||(TypeMoq={}));var TypeMoq;!function(e){var t=function(){function e(){}return e}();e.CurrentInterceptContext=t}(TypeMoq||(TypeMoq={}));var TypeMoq;!function(e){!function(e){e[e.Class=0]="Class",e[e.Function=1]="Function",e[e.Value=2]="Value"}(e.GlobalType||(e.GlobalType={}));var t=(e.GlobalType,function(){function t(e,t,n,r){this.mock=e,this._name=t,this._type=n,this.container=r}return t.ofInstance=function(n,r,o,i){void 0===o&&(o=window),void 0===i&&(i=0);var c=e.Mock.ofInstance(n,i),a=_.isFunction(n)?1:2;return new t(c,r,a,o)},t.ofType=function(n,r,o){void 0===r&&(r=window),void 0===o&&(o=0);var i=new n,c=e.Mock.ofInstance(i,o);return new t(c,name,0,r)},Object.defineProperty(t.prototype,"object",{get:function(){return this.mock.object},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this._name||this.mock.name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"behavior",{get:function(){return this.mock.behavior},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"callBase",{get:function(){return this.mock.callBase},set:function(e){this.mock.callBase=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"type",{get:function(){return this._type},enumerable:!0,configurable:!0}),t.prototype.setup=function(e){return this.mock.setup(e)},t.prototype.verify=function(e,t){this.mock.verify(e,t)},t.prototype.verifyAll=function(){this.mock.verifyAll()},t}());e.GlobalMock=t}(TypeMoq||(TypeMoq={}));var TypeMoq;!function(e){var t=function(){function e(){}return e.getOwnEnumerables=function(e){return this._getPropertyNames(e,!0,!1,this._enumerable)},e.getOwnNonenumerables=function(e){return this._getPropertyNames(e,!0,!1,this._notEnumerable)},e.getOwnEnumerablesAndNonenumerables=function(e){return this._getPropertyNames(e,!0,!1,this._enumerableAndNotEnumerable)},e.getPrototypeEnumerables=function(e){return this._getPropertyNames(e,!1,!0,this._enumerable)},e.getPrototypeNonenumerables=function(e){return this._getPropertyNames(e,!1,!0,this._notEnumerable)},e.getPrototypeEnumerablesAndNonenumerables=function(e){return this._getPropertyNames(e,!1,!0,this._enumerableAndNotEnumerable)},e.getOwnAndPrototypeEnumerables=function(e){return this._getPropertyNames(e,!0,!0,this._enumerable)},e.getOwnAndPrototypeNonenumerables=function(e){return this._getPropertyNames(e,!0,!0,this._notEnumerable)},e.getOwnAndPrototypeEnumerablesAndNonenumerables=function(e){return this._getPropertyNames(e,!0,!0,this._enumerableAndNotEnumerable)},e._enumerable=function(e,t){return e.propertyIsEnumerable(t)},e._notEnumerable=function(e,t){return!e.propertyIsEnumerable(t)},e._enumerableAndNotEnumerable=function(){return!0},e._getPropertyNames=function(e,t,n,r){var o=[];do{if(t){var i=Object.getOwnPropertyNames(e);_.forEach(i,function(t){var n=_.find(o,function(e){return e.name===t});if(!n&&r(e,t)){var i=Object.getOwnPropertyDescriptor(e,t);o.push({name:t,desc:i})}})}if(!n)break;t=!0}while(e=Object.getPrototypeOf(e));return o},e}();e.PropertyRetriever=t}(TypeMoq||(TypeMoq={}));var TypeMoq;!function(e){var t=function(){function e(){}return e.getUUID=function(){var e=(new Date).getTime(),t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"==t?n:3&n|8).toString(16)});return t},e.functionName=function(e){var t=e.toString();return t=t.substr("function ".length),t=t.substr(0,t.indexOf("("))},e.conthunktor=function(e,t){return function(){var n,r,o=function(){};return o.prototype=e.prototype,n=new o,_.isFunction(e)&&(r=e.apply(n,t)),_.isObject(r)?r:n}()},e}();e.Utils=t}(TypeMoq||(TypeMoq={}));var TypeMoq;!function(e){var t;!function(e){var t=function(){function e(e,t){this.name=e,this.message=t}return e.prototype.toString=function(){return name},e}();e.Exception=t}(t=e.Error||(e.Error={}))}(TypeMoq||(TypeMoq={}));var __extends=this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);n.prototype=t.prototype,e.prototype=new n},TypeMoq;!function(e){var t;!function(e){!function(e){e[e.NoSetup=0]="NoSetup",e[e.MoreThanOneSetupExpression=1]="MoreThanOneSetupExpression",e[e.InvalidSetupExpression=2]="InvalidSetupExpression",e[e.InvalidMatcher=3]="InvalidMatcher",e[e.InvalidProxyArgument=4]="InvalidProxyArgument",e[e.UnknownGlobalType=5]="UnknownGlobalType",e[e.VerificationFailed=6]="VerificationFailed",e[e.MoreThanOneCall=7]="MoreThanOneCall",e[e.MoreThanNCalls=8]="MoreThanNCalls"}(e.MockExceptionReason||(e.MockExceptionReason={}));var t=(e.MockExceptionReason,function(e){function t(t,n,r,o){void 0===r&&(r="Mock Exception"),e.call(this,r,o),this.reason=t,this.ctx=n}return __extends(t,e),t}(e.Exception));e.MockException=t}(t=e.Error||(e.Error={}))}(TypeMoq||(TypeMoq={}));var TypeMoq;!function(e){var t;!function(t){var n=function(){function t(t){this._ctor=t,this.___id=e.Cons.IMATCH_ID_VALUE}return t.prototype.___matches=function(e){var t=!1;return this._ctor.prototype===e.constructor.prototype&&(t=!0),t},t}();t.MatchAnyObject=n;var r=function(){function t(){this.___id=e.Cons.IMATCH_ID_VALUE}return t.prototype.___matches=function(e){var t=!1;return _.isUndefined(e)||(t=!0),t},t}();t.MatchAny=r;var o=function(){function t(){this.___id=e.Cons.IMATCH_ID_VALUE}return t.prototype.___matches=function(e){var t=!1;return _.isString(e)&&(t=!0),t},t}();t.MatchAnyString=o;var i=function(){function t(){this.___id=e.Cons.IMATCH_ID_VALUE}return t.prototype.___matches=function(e){var t=!1;return _.isNumber(e)&&(t=!0),t},t}();t.MatchAnyNumber=i}(t=e.Match||(e.Match={}))}(TypeMoq||(TypeMoq={}));var TypeMoq;!function(e){var t;!function(t){var n=function(){function t(t){this._value=t,this.___id=e.Cons.IMATCH_ID_VALUE}return t.prototype.___matches=function(e){var t=!1;return _.isEqual(this._value,e)&&(t=!0),t},t}();t.MatchValue=n}(t=e.Match||(e.Match={}))}(TypeMoq||(TypeMoq={}));var TypeMoq;!function(e){var t;!function(e){var t=function(){function e(e,t){this._property=e,this._args=t}return Object.defineProperty(e.prototype,"args",{get:function(){return this._args||{length:0,callee:null}},set:function(e){this._args=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"property",{get:function(){return this._property},enumerable:!0,configurable:!0}),e.prototype.invokeBase=function(){this.returnValue=this._property.toFunc.apply(this._property.obj,this._args)},e}();e.MethodInvocation=t;var n=function(){function e(e,t){this._property=e,this.returnValue=t}return Object.defineProperty(e.prototype,"args",{get:function(){var e=[];return Object.defineProperty(e,"callee",{configurable:!1,enumerable:!0,writable:!1,value:null}),e},set:function(){},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"property",{get:function(){return this._property},enumerable:!0,configurable:!0}),e.prototype.invokeBase=function(){},e}();e.GetterInvocation=n;var r=function(){function e(e,t){this._property=e,this._args=t}return Object.defineProperty(e.prototype,"args",{get:function(){return this._args},set:function(e){this._args=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"property",{get:function(){return this._property},enumerable:!0,configurable:!0}),e.prototype.invokeBase=function(){this.returnValue=this._property.obj[this._property.name]=this._args[0]},e}();e.SetterInvocation=r;var o=function(){function e(e,t){this.obj=e,this.name=t}return Object.defineProperty(e.prototype,"toFunc",{get:function(){var e;return e=_.isFunction(this.obj)?this.obj:this.obj[this.name]},enumerable:!0,configurable:!0}),e}();e.MethodInfo=o;var i=function(){function e(e,t){this.obj=e,this.name=t}return e}();e.PropertyInfo=i}(t=e.Proxy||(e.Proxy={}))}(TypeMoq||(TypeMoq={}));var TypeMoq;!function(e){var t;!function(t){var n=function(){function n(t,n){var r=this;this.check(n);var o=this,i=e.PropertyRetriever.getOwnAndPrototypeEnumerablesAndNonenumerables(n);_.each(i,function(e){if(_.isFunction(e.desc.value)){var i={configurable:e.desc.configurable,enumerable:e.desc.enumerable,writable:e.desc.writable};r.defineMethodProxy(o,t,n,e.name,i)}else{var i={configurable:e.desc.configurable,enumerable:e.desc.enumerable};r.definePropertyProxy(o,t,n,e.name,e.desc.value,i)}})}return n.of=function(t,r){n.check(t);var o;if(_.isFunction(t)){var i=e.Utils.functionName(t);o=n.methodProxyValue(r,t,i)}else o=new n(r,t);return o},n.check=function(e){n.checkNotNull(e);var t=!1;if((_.isFunction(e)||_.isObject(e)&&!n.isPrimitiveObject(e))&&(t=!0),!t)throw new error.MockException(4,e,"InvalidProxyArgument Exception","Argument should be a function or a non primitive object")},n.prototype.check=function(e){n.checkNotNull(e);var t=!1;if(_.isFunction(e)||!_.isObject(e)||n.isPrimitiveObject(e)||(t=!0),!t)throw new error.MockException(4,e,"InvalidProxyArgument Exception","Argument should be a non primitive object")},n.checkNotNull=function(e){if(_.isNull(e))throw new error.MockException(4,e,"InvalidProxyArgument Exception","Argument cannot be null")},n.isPrimitiveObject=function(e){var t=!1;return(_.isFunction(e)||_.isArray(e)||_.isDate(e)||_.isNull(e))&&(t=!0),t},n.prototype.defineMethodProxy=function(e,t,r,o,i){void 0===i&&(i={configurable:!1,enumerable:!0,writable:!1}),i.value=n.methodProxyValue(t,r,o),this.defineProperty(e,o,i)},n.methodProxyValue=function(e,n,r){return function(){var o=new t.MethodInfo(n,r),i=new t.MethodInvocation(o,arguments);return e.intercept(i),i.returnValue}},n.prototype.definePropertyProxy=function(e,n,r,o,i,c){void 0===c&&(c={configurable:!1,enumerable:!0}),c.get=function(){var e=new t.PropertyInfo(r,o),c=new t.GetterInvocation(e,i);return n.intercept(c),c.returnValue},c.set=function(){var e=new t.PropertyInfo(r,o),i=new t.SetterInvocation(e,arguments);n.intercept(i)},this.defineProperty(e,o,c)},n.prototype.defineProperty=function(e,t,n){try{Object.defineProperty(e,t,n)}catch(r){console.log(r.message)}},n}();t.Proxy=n}(t=e.Proxy||(e.Proxy={}))}(TypeMoq||(TypeMoq={}));var TypeMoq;!function(e){var t;!function(e){var t=function(){function t(){}return t.prototype.createProxy=function(t,n){var r=e.Proxy.of(n,t);return r},t}();e.ProxyFactory=t}(t=e.Proxy||(e.Proxy={}))}(TypeMoq||(TypeMoq={}));var TypeMoq;!function(e){!function(e){e[e.Continue=0]="Continue",e[e.Stop=1]="Stop"}(e.InterceptionAction||(e.InterceptionAction={}));var t=(e.InterceptionAction,function(){function e(e,t){this.behavior=e,this.mock=t,this._actualInvocations=[],this._orderedCalls=[]}return e.prototype.addInvocation=function(e){this._actualInvocations.push(e)},e.prototype.actualInvocations=function(){return this._actualInvocations},e.prototype.clearInvocations=function(){this._actualInvocations=[]},e.prototype.addOrderedCall=function(e){this._orderedCalls.push(e)},e.prototype.removeOrderedCall=function(e){_.filter(this._orderedCalls,function(t){return t.id!==e.id})},e.prototype.orderedCalls=function(){return this._orderedCalls},e}());e.InterceptorContext=t}(TypeMoq||(TypeMoq={}));var TypeMoq;!function(e){var t=function(){function t(t,n){this._interceptorContext=new e.InterceptorContext(t,n)}return Object.defineProperty(t.prototype,"interceptorContext",{get:function(){return this._interceptorContext},enumerable:!0,configurable:!0}),t.prototype.intercept=function(t){var n=this,r=new e.CurrentInterceptContext;_.some(this.interceptionStrategies(),function(e){return 1===e.handleIntercept(t,n.interceptorContext,r)?!0:void 0})},t.prototype.addCall=function(e){this._interceptorContext.addOrderedCall(e)},t.prototype.verifyCall=function(e,t){var n=this._interceptorContext.actualInvocations(),r=_.filter(n,function(t){return e.matches(t)}).length;t.verify(r)||this.throwVerifyCallException(e.setupCall,t)},t.prototype.verify=function(){var t=this._interceptorContext.orderedCalls(),n=_.filter(t,function(e){return e.isVerifiable}),r=_.filter(t,function(e){return e.isVerifiable&&e.isInvoked}),o=e.Times.exactly(n.length);o.verify(r.length)||this.throwVerifyException(n,o)},t.prototype.interceptionStrategies=function(){var t=[new e.AddActualInvocation,new e.ExtractProxyCall,new e.ExecuteCall,new e.InvokeBase,new e.HandleMockRecursion];return t},t.prototype.throwVerifyCallException=function(e,t){var n=new error.MockException(6,e,"VerifyCall Exception",t.failMessage);throw n},t.prototype.throwVerifyException=function(e,t){var n=new error.MockException(6,e,"Verify Exception",t.failMessage);throw n},t}();e.InterceptorExecute=t}(TypeMoq||(TypeMoq={}));var TypeMoq;!function(e){var t=function(){function e(){}return Object.defineProperty(e.prototype,"interceptedCall",{get:function(){return this._interceptedCall},enumerable:!0,configurable:!0}),e.prototype.intercept=function(e){if(this._interceptedCall)throw new error.MockException(1,e,"MoreThanOneSetupExpression Exception","Setup should contain only one expression");this._interceptedCall=e},e}();e.InterceptorSetup=t}(TypeMoq||(TypeMoq={}));var TypeMoq;!function(e){var t=function(){function e(){}return e.prototype.handleIntercept=function(e,t){return t.addInvocation(e),0},e}();e.AddActualInvocation=t;var n=function(){function e(){}return e.prototype.handleIntercept=function(e,t,n){var r=t.orderedCalls().reverse();if(n.call=_.find(r,function(t){return t.matches(e)}),null!=n.call)n.call.evaluatedSuccessfully();else if(1==t.behavior)throw new error.MockException(0,e);return 0},e}();e.ExtractProxyCall=n;var r=function(){function e(){}return e.prototype.handleIntercept=function(e,t,n){this._ctx=t;var r=n.call;return null!=r?(r.execute(e),1):0},e}();e.ExecuteCall=r;var o=function(){function e(){}return e.prototype.handleIntercept=function(e,t){return t.mock.callBase?(e.invokeBase(),1):0},e}();e.InvokeBase=o;var i=function(){function e(){}return e.prototype.handleIntercept=function(){return 0},e}();e.HandleMockRecursion=i}(TypeMoq||(TypeMoq={}));var TypeMoq;!function(e){var t=function(){function e(){}return e.isValue=function(e){var t=new match.MatchValue(e);return t},e.isAnyObject=function(e){var t=new match.MatchAnyObject(e);return t},e.isAny=function(){var e=new match.MatchAny;return e},e.isAnyString=function(){var e=new match.MatchAnyString;return e},e.isAnyNumber=function(){var e=new match.MatchAnyNumber;return e},e}();e.It=t}(TypeMoq||(TypeMoq={}));var TypeMoq;!function(e){var t=function(){function t(t,n){this.mock=t,this._setupExpression=n,this._id=this.generateId();var r=new e.InterceptorSetup,o=e.Mock.proxyFactory.createProxy(r,t.instance);if(n(o),!r.interceptedCall)throw new error.MockException(2,this._setupExpression,"InvalidSetupExpression Exception","Invalid setup expression");var i=r.interceptedCall,c=this.transformToMatchers(i.args);Object.defineProperty(c,"callee",{configurable:!1,enumerable:!0,writable:!1,value:i.args.callee}),i.args=c,this._setupCall=i}return t.prototype.generateId=function(){return"MethodCall<"+_.uniqueId()+">"},t.prototype.transformToMatchers=function(t){var n=[];return _.each(t,function(t){if(_.isObject(t)){if(_.isUndefined(t[e.Cons.IMATCH_MATCHES_NAME])||_.isUndefined(t[e.Cons.IMATCH_ID_NAME])||t[e.Cons.IMATCH_ID_NAME]!==e.Cons.IMATCH_ID_VALUE)throw new error.MockException(3,t,"InvalidMatcher Exception","Invalid match object");n.push(t)}else{var r=new match.MatchValue(t);n.push(r)}}),n},Object.defineProperty(t.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"callCount",{get:function(){return this._callCount},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"setupExpression",{get:function(){return this._setupExpression},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"setupCall",{get:function(){return this._setupCall},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isVerifiable",{get:function(){return this._isVerifiable},enumerable:!0,configurable:!0}),t.prototype.evaluatedSuccessfully=function(){this._evaluatedSuccessfully=!0},t.prototype.matches=function(e){var t=!1;return this._setupCall.property&&e&&e.property&&this._setupCall.property.name===e.property.name&&this._setupCall.args.length===e.args.length&&(t=!0,_.each(this.setupCall.args,function(n,r){var o=n,i=e.args[r];t&&!o.___matches(i)&&(t=!1)})),t},t.prototype.execute=function(t){if(this.isInvoked=!0,null!=this._setupCallback&&this._setupCallback.apply(this,t.args),null!=this._thrownException)throw this._thrownException;if(this._callCount++,this._isOnce){var n=e.Times.atMostOnce();if(!n.verify(this._callCount))throw new error.MockException(7,this,"MoreThanOneCall Exception",n.failMessage)}if(this._expectedCallCount){var n=e.Times.exactly(this._expectedCallCount);if(!n.verify(this._callCount))throw new error.MockException(8,this,"MoreThanNCalls Exception",n.failMessage)}},t.prototype.verifiable=function(e){this._isVerifiable=!0,null!=e&&(this.failMessage=e)},t}();e.MethodCall=t}(TypeMoq||(TypeMoq={}));var __extends=this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);n.prototype=t.prototype,e.prototype=new n},TypeMoq;!function(e){var t=function(e){function t(t,n){e.call(this,t,n)}return __extends(t,e),t.prototype.execute=function(t){e.prototype.execute.call(this,t),this._callBase?t.invokeBase():this.hasReturnValue&&(t.returnValue=this._returnValueFunc.apply(this,t.args))},t.prototype.callback=function(e){return this._setupCallback=e,this},t.prototype["throws"]=function(e){return this._thrownException=e,this},t.prototype.returns=function(e){return this._returnValueFunc=e,this.hasReturnValue=!0,this},t.prototype.callBase=function(){return this._callBase=!0,this},t}(e.MethodCall);e.MethodCallReturn=t}(TypeMoq||(TypeMoq={}));var TypeMoq;!function(e){!function(e){e[e.Loose=0]="Loose",e[e.Strict=1]="Strict"}(e.MockBehavior||(e.MockBehavior={}));var t=(e.MockBehavior,function(){function t(n,r){void 0===r&&(r=0),this.instance=n,this._behavior=r,this._id=this.generateId(),this._name=this.getNameOf(n),this._interceptor=new e.InterceptorExecute(this._behavior,this),this._proxy=t.proxyFactory.createProxy(this._interceptor,n)}return t.ofInstance=function(e,n){void 0===n&&(n=0);var r=new t(e,n);return r},t.ofType=function(e,n){void 0===n&&(n=0);for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];var i=t.ofType2(e,r,n);return i},t.ofType2=function(n,r,o){void 0===o&&(o=0);var i=e.Utils.conthunktor(n,r),c=new t(i,o);return c},Object.defineProperty(t.prototype,"object",{get:function(){return this._proxy},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this._name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"behavior",{get:function(){return this._behavior},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"callBase",{get:function(){return this._callBase},set:function(e){this._callBase=e},enumerable:!0,configurable:!0}),t.prototype.generateId=function(){return"Mock<"+_.uniqueId()+">"},t.prototype.getNameOf=function(t){var n;if(_.isFunction(t))n=e.Utils.functionName(t);else if(_.isObject(t)){var r=t.constructor;n=e.Utils.functionName(r)}return n&&(n=n.trim()),n},t.prototype.setup=function(t){var n=new e.MethodCallReturn(this,t);return this._interceptor.addCall(n),n},t.prototype.verify=function(t,n){var r=new e.MethodCall(this,t);this._interceptor.addCall(r);try{this._interceptor.verifyCall(r,n)}catch(o){throw o}},t.prototype.verifyAll=function(){try{this._interceptor.verify()}catch(e){throw e}},t.proxyFactory=new e.Proxy.ProxyFactory,t}());e.Mock=t}(TypeMoq||(TypeMoq={}));var TypeMoq;!function(e){var t=function(){function e(e,t,n,r){this._condition=e,this._from=t,this._to=n,this._failMessage=_.template(r)}return Object.defineProperty(e.prototype,"failMessage",{get:function(){return this._failMessage({n:this._from,m:this._lastCallCount})},enumerable:!0,configurable:!0}),e.prototype.verify=function(e){return this._lastCallCount=e,this._condition(e)},e.exactly=function(t){return new e(function(e){return e===t},t,t,e.NO_MATCHING_CALLS_EXACTLY_N_TIMES)},e.never=function(){return e.exactly(0)},e.once=function(){return e.exactly(1)},e.atLeastOnce=function(){return new e(function(e){return e>=1},1,Number.MAX_VALUE,e.NO_MATCHING_CALLS_AT_LEAST_ONCE)},e.atMostOnce=function(){return new e(function(e){return e>=0&&1>=e},0,1,e.NO_MATCHING_CALLS_AT_MOST_ONCE)},e.NO_MATCHING_CALLS_EXACTLY_N_TIMES="Expected invocation on the mock <%= n %> times, invoked <%= m %> times",e.NO_MATCHING_CALLS_AT_LEAST_ONCE="Expected invocation on the mock at least once",e.NO_MATCHING_CALLS_AT_MOST_ONCE="Expected invocation on the mock at most once",e}();e.Times=t}(TypeMoq||(TypeMoq={}));var error=TypeMoq.Error,match=TypeMoq.Match,proxy=TypeMoq.Proxy,TypeMoq;if(function(e){var t=function(){function t(e){this._args=e}return t.using=function(){for(var e=[],n=0;n<arguments.length;n++)e[n-0]=arguments[n];var r=new t(e);return r},t.prototype["with"]=function(t){var n=[];try{_.each(this._args,function(t){if(!_.isUndefined(t.container[t.name])){var r=e.PropertyRetriever.getOwnAndPrototypeEnumerablesAndNonenumerables(t.container),o=_.find(r,function(e){return e.name===t.name});n[t.name]=o.desc;var i={};switch(t.type){case 0:i.value=function(){return t.mock.object};break;case 1:i.value=t.mock.object;break;case 2:i.get=function(){return t.mock.object};break;default:throw new error.MockException(5,t,"UnknownGlobalType Exception","unknown global type: "+t.type)}Object.defineProperty(t.container,t.name,i)}}),t.apply(this,this._args)}finally{_.each(this._args,function(e){if(!_.isUndefined(e.mock.instance)){var t=n[e.name];switch(e.type){case 0:break;case 1:break;case 2:t.configurable=!0}Object.defineProperty(e.container,e.name,t)}})}},t}();e.GlobalScope=t}(TypeMoq||(TypeMoq={})),"undefined"!=typeof require)var _=require("underscore");"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=TypeMoq),exports.TypeMoq=TypeMoq):this.TypeMoq=TypeMoq; |
@@ -349,6 +349,6 @@ declare module TypeMoq { | ||
setupExpression: IAction1<T>; | ||
setupCall: ICallContext; | ||
setupCall: proxy.ICallContext; | ||
evaluatedSuccessfully(): void; | ||
matches(call: ICallContext): boolean; | ||
execute(call: ICallContext): void; | ||
matches(call: proxy.ICallContext): boolean; | ||
execute(call: proxy.ICallContext): void; | ||
} | ||
@@ -449,3 +449,3 @@ } | ||
declare module TypeMoq { | ||
class InterceptorExecute<T> implements proxy.ICallInterceptor { | ||
class InterceptorExecute<T> implements Proxy.ICallInterceptor { | ||
private _interceptorContext; | ||
@@ -467,3 +467,3 @@ constructor(behavior: MockBehavior, mock: IMock<T>); | ||
declare module TypeMoq { | ||
class InterceptorSetup<T> implements proxy.ICallInterceptor { | ||
class InterceptorSetup<T> implements Proxy.ICallInterceptor { | ||
private _interceptedCall; | ||
@@ -647,2 +647,5 @@ interceptedCall: proxy.ICallContext; | ||
/// <reference path="../bower_components/DefinitelyTyped/node/node.d.ts" /> | ||
//# sourceMappingURL=output.d.ts.map |
/// <reference path="./typemoq.d.ts" /> | ||
import typemoq = require("typemoq"); | ||
declare module "typemoq" { | ||
export = typemoq; | ||
export = TypeMoq; | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
367
242347
1812
3