public AuthenticationModel() { AuthenticationSystem Au = new AuthenticationSystem(); Au.GetAdminAccount(); EmployeeID = Au.EmployeeID; MasterPassword = Au.MasterPassword; }
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); }
private bool CanRegister() { AuthenticationSystem AS = new AuthenticationSystem(); AS.GetAdminAccount(); AdminAccountStatus = AS.AdminAccountStatus; RowCount = AS.RowCount; if (RowCount == 0 & !AdminAccountStatus) { return(true); } else { return(false); } }