Ejemplo n.º 1
0
        public void store(WebClientData wbData)
        {
            clientData   cData  = new clientData(wbData.Name, wbData.ID);
            PerfectStore pStore = new PerfectStore();

            Console.WriteLine("ADAPTATION!");
            pStore.store(cData);
        }
Ejemplo n.º 2
0
        public void store(WebClientData wc)
        {
            ClientData   cd = new ClientData(wc.Name, wc.Id);
            PerfectStore ps = new PerfectStore();

            ps.store(cd);

            Console.WriteLine($"IP : {(wc.Ip)} \nSSL : {(wc.Ssl)}");
        }
Ejemplo n.º 3
0
        static void Main(string[] args)
        {
            // Check Perfect store
            ClientData   cd = new ClientData("May", "316015833");
            PerfectStore ps = new PerfectStore();

            ps.store(cd);

            // Check Web data store
            Console.WriteLine("\n");
            WebClientData wcd = new WebClientData("Galibter", "316015833", "1.2.3.4", true);
            WebDataStore  wds = new WebDataStore();

            wds.store(wcd);
        }
Ejemplo n.º 4
0
        static void Main(string[] args)
        {
            Console.WriteLine("Store regular data: ");
            clientData   dbData = new clientData("BLA", 1);
            PerfectStore pStore = new PerfectStore();

            pStore.store(dbData);

            Console.WriteLine("Store bad web data: ");
            WebClientData      wData   = new WebClientData("BLA", 1, "12345", true);
            WebClientDataStore wdStore = new WebClientDataStore();

            wdStore.BadStore(wData);
            wdStore.store(wData);
        }