authelia/server/test/mocks/ldap/ClientFactoryStub.ts

16 lines
418 B
TypeScript
Raw Normal View History

import { IClient } from "../../../src/lib/ldap/IClient";
import { IClientFactory } from "../../../src/lib/ldap/IClientFactory";
import Sinon = require("sinon");
export class ClientFactoryStub implements IClientFactory {
createStub: Sinon.SinonStub;
constructor() {
this.createStub = Sinon.stub();
}
create(userDN: string, password: string): IClient {
return this.createStub(userDN, password);
}
}