xrm-mock
Version:
A fake implementation of the Xrm object model. Used for testing Dynamics 365 client-side scripts.
17 lines (16 loc) • 877 B
TypeScript
/// <reference types="xrm" />
import { StringControlMock } from "../../controls/stringcontrol/stringcontrol.mock";
import { AttributeMock, IAttributeComponents } from "../attribute/attribute.mock";
export declare class StringAttributeMock extends AttributeMock<StringControlMock, StringAttributeMock, string> implements Xrm.Attributes.StringAttribute {
static create(name: string, value?: string): StringAttributeMock;
private static defaultComponents;
maxLength: number;
constructor(components: IStringAttributeComponents);
getFormat(): Xrm.Attributes.StringAttributeFormat;
getMaxLength(): number;
setValue(value: string): void;
}
export interface IStringAttributeComponents extends IAttributeComponents<StringControlMock, StringAttributeMock, string> {
format?: Xrm.Attributes.StringAttributeFormat;
maxLength?: number;
}