Exemple #1
0
        static void Main(string[] args)
        {
            //BankHandling.ViewBanks();
            int newBank = BankHandling.AddBank("New Bank", "BANKFIHH");

            //BankHandling.ViewBanks();
            if (newBank > 0)
            {
                BankHandling.ChangeBankInformation(newBank, "Modified Bank", "BANKFIHX");
                BankHandling.ViewBanks();

                //AccountHandling.ViewAllAccounts();
                int newCustomer = CustomerHandling.AddCustomer("Uusi", "Käyttäjä", newBank);
                if (newCustomer > 0)
                {
                    AccountHandling.AddAccount(newCustomer, newBank, "FI4250001510000028");
                    AccountHandling.AddAccount(newCustomer, newBank, "CF4250001510002228");
                    CustomerHandling.ChangeCustomerInformation(newCustomer, "Muokattu", "Käyttäjä", newBank);
                }
                BankHandling.RemoveBank(newBank);
                BankHandling.ViewBanks();

                AccountHandling.ViewAllAccountsInAllBanks();
            }
            Console.ReadKey();
        }
Exemple #2
0
 public RequireGuildAttribute(AccountHandling handling = AccountHandling.ReadWrite)
 {
     Handling = handling;
 }
Exemple #3
0
 public RequireUserAttribute(AccountHandling handling = AccountHandling.ReadWrite, bool autoBuild = true)
 {
     Handling   = handling;
     _autoBuild = autoBuild;
 }