How to use the xrm-mock.DataMock function in xrm-mock

To help you get started, we’ve selected a few xrm-mock examples, based on popular ways it is used in public projects.

github camelCaseDave / xrm-mock-generator / src / xrm-mock-generator / core.js View on Github external
XrmMockGenerator.prototype.initialise = function () {
        var Xrm = new XrmMock.XrmStaticMock({
            page: new XrmMock.PageMock({
                context: new XrmMock.ContextMock({
                    userRoles: []
                }),
                data: new XrmMock.DataMock(
                    new XrmMock.EntityMock(
                        "{00000000-0000-0000-0000-000000000000}",
                        new XrmMock.ItemCollectionMock([]))),
                ui: Ui.createUi()
            })
        });

        return global.Xrm = Xrm;
    };