text: export var MockStorageHelper = (function () {
      function MockStorageHelper() {
      }
      MockStorageHelper.isSecuredField = function (field) {
          return !!~MockStorageHelper.securedFields.indexOf(field);
      };
      MockStorageHelper.getStorage = function (sType) {
          if (!this.mockStorages[sType])
              this.mockStorages[sType] = MockStorageHelper.generateStorage();
          return this.mockStorages[sType];
      };
      MockStorageHelper.generateStorage = function () {
          var storage = {};
          Object.defineProperties(storage, {
              setItem: {
                  writable: false,
                  enumerable: false,
                  configurable: false,
                  value: function (key, value) {
                      if (!MockStorageHelper.isSecuredField(key))
                          this[key] = value;
                  },
              },
              getItem: {
                  writable: false,
                  enumerable: false,
                  configurable: false,
                  value: function (key) {
                      return !MockStorageHelper.isSecuredField(key) ? this[key] || null : null;
                  },
              },
              removeItem: {
                  writable: false,
                  enumerable: false,
                  configurable: false,
                  value: function (key) {
                      if (!MockStorageHelper.isSecuredField(key))
                          delete this[key];
                  },
              },
              length: {
                  enumerable: false,
                  configurable: false,
                  get: function () {
                      return Object.keys(this).length;
                  }
              }
          });
          return storage;
      };
      MockStorageHelper.securedFields = ['setItem', 'getItem', 'removeItem', 'length'];
      MockStorageHelper.mockStorages = {};
      return MockStorageHelper;
  }());
  //# sourceMappingURL=mockStorage.js.map