UNPKG

xrm-mock

Version:

A fake implementation of the Xrm object model. Used for testing Dynamics 365 client-side scripts.

44 lines 1.39 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.StageMock = void 0; var StageMock = /** @class */ (function () { function StageMock(id, name, status, category, steps) { this.id = id; this.name = name; this.status = status; this.category = category; this.steps = steps; } StageMock.prototype.getCategory = function () { var stageCategory = this.category; return { getValue: function () { return stageCategory; }, }; }; StageMock.prototype.getEntityName = function () { throw new Error("get entity name not implemented"); }; StageMock.prototype.getId = function () { return this.id; }; StageMock.prototype.getName = function () { return this.name; }; StageMock.prototype.getStatus = function () { return this.status; }; StageMock.prototype.getSteps = function () { return this.steps; }; StageMock.prototype._setStatus = function (status) { this.status = status; }; StageMock.prototype.getNavigationBehavior = function () { throw new Error("getNavigationBehavior not implemented"); }; return StageMock; }()); exports.StageMock = StageMock; //# sourceMappingURL=stage.mock.js.map