public static void UseSystem() { InternalSystem system = new InternalSystem(); Console.WriteLine("Employees to test login\n"); Director Account1 = new Director("159.753.398-04"); Account1.Name = "Roberta Fierro"; Account1.Password = "******"; AccountManager Account2 = new AccountManager("326.985.628-89"); Account2.Name = "Camila Caballo"; Account2.Password = "******"; CommercialPartner Account3 = new CommercialPartner(); Account3.Password = "******"; Console.WriteLine("\nLogin status\n"); system.Login(Account1, "123"); system.Login(Account2, "abcd"); system.Login(Account3, "456"); }
public static void UseInternalSystem() { InternalSystem internalSystem = new InternalSystem(); Director robert = new Director("159.753.398-04"); robert.Name = "Robert"; robert.Password = "******"; AccountManager caroline = new AccountManager("326.985.628-89"); caroline.Name = "Caroline"; caroline.Password = "******"; CommercialPartner commercialPartner = new CommercialPartner(); commercialPartner.Password = "******"; internalSystem.LogInto(robert, "123"); internalSystem.LogInto(caroline, "abc"); internalSystem.LogInto(commercialPartner, "123456"); }