public LoginMiddlewareTests()
 {
     this.loginRepository     = new Mock <ILoginRepository>();
     this.environmentVariable = new Mock <IEnvironmentVariable>();
     this.sharedResources     = new Mock <ISharedResources>();
     this.error = new Mock <IError>();
     this.stub  = new LoginMiddleware(this.loginRepository.Object,
                                      this.environmentVariable.Object, this.error.Object, this.sharedResources.Object);
 }
Exemplo n.º 2
0
 public LoginController(ILoginMiddleware loginMiddleware, IError error) : base(error)
 {
     this.loginMiddleware = loginMiddleware;
 }