Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
Attribute.prototype.createLookup = function (name, lookup) {
var attribute = createAttribute(name || "", [new XrmMock.LookupValueMock(
lookup.id,
lookup.entityType,
lookup.name)]);
var lookupAttribute = new XrmMock.LookupAttributeMock(attribute, false);
addAttribute(lookupAttribute);
return lookupAttribute
};