public AuthenticationModel() { AuthenticationSystem Au = new AuthenticationSystem(); Au.GetAdminAccount(); EmployeeID = Au.EmployeeID; MasterPassword = Au.MasterPassword; }
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(); }
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); }
public void CreateAdminAccount() { AuthenticationSystem AuthenticationSystemObject = new AuthenticationSystem { FullName = "dilip", MasterPassword = "******", EmployeeID = "dilip", EmailID = "*****@*****.**", AdminAccountStatus = true, ActivationStatus = true }; AuthenticationSystemObject.CreateAdminAccount(); }
private bool CanRegister() { AuthenticationSystem AS = new AuthenticationSystem(); AS.GetAdminAccount(); AdminAccountStatus = AS.AdminAccountStatus; RowCount = AS.RowCount; if (RowCount == 0 & !AdminAccountStatus) { return(true); } else { return(false); } }