Example #1
0
        static void Main(string[] args)
        {
            VirtualProxyDataset virtualDataset = new VirtualProxyDataset("csv.txt");
            User user = User.GenerateUser("Ana");
            ProtectionProxyDataset protectionDataset = new ProtectionProxyDataset(user);
            DataConsolePrinter     printer           = new DataConsolePrinter();

            printer.PrintDataConsole(virtualDataset);
            printer.PrintDataConsole(protectionDataset);

            CoralTheme   coral = new CoralTheme();
            ReminderNote note  = new ReminderNote("It's time for vacation!", coral);

            note.Show();

            GroupNote groupNoteOne = new GroupNote("Winter is coming.", coral);

            for (int i = 0; i < 5; i++)
            {
                string newMember = Console.ReadLine();
                groupNoteOne.AddMember(newMember);
            }
            groupNoteOne.Show();

            LightTheme light        = new LightTheme();
            GroupNote  groupNoteTwo = new GroupNote("Winter is here.", light);

            for (int i = 0; i < 5; i++)
            {
                string newMember = Console.ReadLine();
                groupNoteOne.AddMember(newMember);
            }
            groupNoteTwo.Show();

            Notebook notebook = new Notebook(coral);

            notebook.AddNote(groupNoteOne);
            notebook.AddNote(groupNoteTwo);
            notebook.ChangeTheme(coral);
            notebook.Display();
        }
        static void Main(string[] args)
        {
            Product product1 = new Product("Product 1", 14, 7.77);
            Product product2 = new Product("Product 2", 7, 14.7);

            Box ListProducts = new Box("products");

            ListProducts.Add(product1);
            ListProducts.Add(product2);

            ShippingService shippingService = new ShippingService(7);

            Console.WriteLine(shippingService.CalculatePrice(ListProducts));



            DataConsolePrinter dataPrinter = new DataConsolePrinter();

            VirtualProxyDataset virtualProxy = new VirtualProxyDataset("data.csv");

            dataPrinter.printData(virtualProxy);

            User domagoj = User.GenerateUser("Domagoj");
            User vocanec = User.GenerateUser("Vocanec");

            ProtectionProxyDataset domagojProxy = new ProtectionProxyDataset(domagoj);
            ProtectionProxyDataset vocanecProxy = new ProtectionProxyDataset(vocanec);

            dataPrinter.printData(domagojProxy);
            dataPrinter.printData(vocanecProxy);


            LoggingProxy proxy = new LoggingProxy("data.csv");

            dataPrinter.printData(proxy);
        }