Exemplo n.º 1
0
 public void Initialize()
 {
     students = new DummyPersonStorage <Student>();
     clients  = new DummyPersonStorage <Client>();
     payments = new DummyPaymentStorage();
     Student.InitializeStorage(students);
     Client.InitializeStorage(clients);
 }
Exemplo n.º 2
0
        public void Initialize()
        {
            students = new DummyPersonStorage <Student>();
            clients  = new DummyPersonStorage <Client>();
            payments = new DummyPaymentStorage();
            orders   = new DummyOrderStorage();

            Student.SetupStorage(students);
            Client.SetupStorage(clients);
            Payment.SetupStorage(payments);
            Order.SetupStorage(orders);

            Client c1 = Client.CreateNew("c1");
            Client c2 = Client.CreateNew("c2");
            Client c3 = Client.CreateNew("c3");

            Student.CreateNew("s1", c1);
            Student.CreateNew("s2", c2);
            Student.CreateNew("s3", c3);
        }