コード例 #1
0
        public LoginForm()
        {
            InitializeComponent();
            DesingerService desingerService = DesingerServiceImpl.GetInstance();

            desingerService.AddFormToDesinger(this);

            loginService = LoginServiceImpl.GetService();
        }
コード例 #2
0
        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);
        }
コード例 #3
0
        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);
        }
コード例 #4
0
 public void Setup()
 {
     loginService = LoginServiceImpl.GetService();
     loginService.SetConnectionController(new ConnectionControllerImitation());
 }
コード例 #5
0
 public SeguridadController()
 {
     _loginService = new LoginServiceImpl();
 }