title: I want to create an instance of this class which has arguments in its constructor as follows?
body: <pre><code>export class AuthService {
    constructor(
      private readonly usersService: UsersService,
      @InjectModel('User') private readonly userModel: PassportLocalModel&lt;IUser&gt;,
    ) {}
  
    async register(user: CreateUserDto) {
      let status: RegistrationStatus = {
        success: true,
        message: 'user registerd',
      };
      await this.userModel.register(
        new this.userModel({
          username: user.email,
          firstName: user.firstName,
          lastName: user.lastName,
        }),
        user.password,
        err =&gt; {
          if (err) {
            console.log(err);
            status = { success: false, message: err };
          }
        },
      );
      return status;
    }
  
  
  }
  </code></pre>
  
  <p>I want to create an instance of this class but I am not able to figure out how to pass the arguments. How to handle the arguments for passport local model containing Iuser?</p>