camelCaseDave/xrm-mock

View on GitHub
src/xrm-mock/processflow/step/step.mock.ts

Summary

Maintainability
A
0 mins
Test Coverage
B
86%
export class StepMock implements Xrm.ProcessFlow.Step {
  public required: boolean;
  public name: string;
  public attribute: string;

  constructor(name: string, attribute: string, required: boolean) {
      this.name = name;
      this.attribute = attribute;
      this.required = required;
  }

  public getAttribute(): string {
      return this.attribute;
  }

  public getName(): string {
      return this.name;
  }

  public isRequired(): boolean {
      return this.required;
  }

  public getProgress(): number {
    throw new Error("getProgress not implemented");
  }

  public setProgress(stepProgress: number, message: string): string {
    throw new Error("setProgress not implemented");
  }
}