public LoginForm() { InitializeComponent(); DesingerService desingerService = DesingerServiceImpl.GetInstance(); desingerService.AddFormToDesinger(this); loginService = LoginServiceImpl.GetService(); }
public void LoginOkTest() { var loginService = new LoginServiceImpl(new UserDALImpl(new InfraDAL(), _configuration)); LoginRequest request = new LoginRequest(); request.EmailAddress = "*****@*****.**"; var response = loginService.Login(request); Assert.IsInstanceOf(typeof(LoginResponseOK), response); }
public void LoginForUserNotExists() { var loginService = new LoginServiceImpl(new UserDALImpl(new InfraDAL(), _configuration)); LoginRequest request = new LoginRequest(); request.EmailAddress = "*****@*****.**"; var response = loginService.Login(request); Assert.IsInstanceOf(typeof(LoginResponseUserNotExists), response); }
public void Setup() { loginService = LoginServiceImpl.GetService(); loginService.SetConnectionController(new ConnectionControllerImitation()); }
public SeguridadController() { _loginService = new LoginServiceImpl(); }