コード例 #1
0
        public AuthenticationModel()
        {
            AuthenticationSystem Au = new AuthenticationSystem();

            Au.GetAdminAccount();
            EmployeeID     = Au.EmployeeID;
            MasterPassword = Au.MasterPassword;
        }
コード例 #2
0
ファイル: RegistrationModel.cs プロジェクト: DilipCNair/RBS
        public void Register()
        {
            AuthenticationSystem Au = new AuthenticationSystem();

            Au.ActivationStatus   = true;
            Au.AdminAccountStatus = true;
            Au.FullName           = FullName;
            Au.EmployeeID         = EmployeeID;
            Au.MasterPassword     = MasterPassword;
            Au.EmailID            = EmailID;
            Au.CreateAdminAccount();
        }
コード例 #3
0
ファイル: UnitTest_Models.cs プロジェクト: DilipCNair/RBS
        public void GetAdminAccount()
        {
            AuthenticationSystem AuthenticationSystemObject = new AuthenticationSystem();

            AuthenticationSystemObject.InitialiseAuthenticationResources();
            AuthenticationSystemObject.GetAdminAccount();
            Assert.AreEqual("dilip", AuthenticationSystemObject.FullName);
            Assert.AreEqual("dilip", AuthenticationSystemObject.MasterPassword);
            Assert.AreEqual("dilip", AuthenticationSystemObject.EmployeeID);
            Assert.AreEqual("*****@*****.**", AuthenticationSystemObject.EmailID);
            Assert.AreEqual(true, AuthenticationSystemObject.AdminAccountStatus);
            Assert.AreEqual(true, AuthenticationSystemObject.ActivationStatus);
        }
コード例 #4
0
ファイル: UnitTest_Models.cs プロジェクト: DilipCNair/RBS
        public void CreateAdminAccount()
        {
            AuthenticationSystem AuthenticationSystemObject = new AuthenticationSystem
            {
                FullName           = "dilip",
                MasterPassword     = "******",
                EmployeeID         = "dilip",
                EmailID            = "*****@*****.**",
                AdminAccountStatus = true,
                ActivationStatus   = true
            };

            AuthenticationSystemObject.CreateAdminAccount();
        }
コード例 #5
0
        private bool CanRegister()
        {
            AuthenticationSystem AS = new AuthenticationSystem();

            AS.GetAdminAccount();
            AdminAccountStatus = AS.AdminAccountStatus;
            RowCount           = AS.RowCount;

            if (RowCount == 0 & !AdminAccountStatus)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }