Example #1
0
 static LoginWebServices()
 {
     _accounts = new User[]
     {
         new User("Alex1", "*****@*****.**", "1234"),
         new User("Alex2", "*****@*****.**", "1234"),
         new User("Alex3", "*****@*****.**", "1234")
     };
     _authenticatorByName  = new AuthenticatorByName(_accounts);
     _authenticatorByEmail = new AuthenticatorByEmail(_accounts);
 }
        public LoginWebServices()
        {
            var accounts = new User[]
            {
                new User("Alex1", "*****@*****.**", "1234"),
                new User("Alex2", "*****@*****.**", "1234"),
                new User("Alex3", "*****@*****.**", "1234")
            };

            _userDataBase         = new UserDataBase(accounts);
            _authenticatorByName  = new AuthenticatorByName(_userDataBase);
            _authenticatorByEmail = new AuthenticatorByEmail(_userDataBase);
        }