16 lines
418 B
TypeScript
16 lines
418 B
TypeScript
|
|
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);
|
|
}
|
|
} |