public static void Zadatak4() { Console.WriteLine("Zadatak 4:"); DataConsolePrinter printer = new DataConsolePrinter(); LoggingProxyDataset loggingProxyDataset = new LoggingProxyDataset(@"C:\sensitiveData.csv"); Console.WriteLine("Logging Proxy Dataset test: "); printer.PrintDataset(loggingProxyDataset); Console.WriteLine("\n*****************************\n"); }
public static void Zadatak3() { Console.WriteLine("Zadatak 3:"); DataConsolePrinter printer = new DataConsolePrinter(); VirtualProxyDataset virtualProxyDataset = new VirtualProxyDataset(@"C:\sensitiveData.csv"); Console.WriteLine("Virtual Proxy Dataset test: "); printer.PrintDataset(virtualProxyDataset); User user1 = User.GenerateUser("Korisnik 1"); User user2 = User.GenerateUser("Korisnik 2"); ProtectionProxyDataset protectionProxyDataset1 = new ProtectionProxyDataset(user1); Console.WriteLine("Protection Proxy Dataset test sa ID 1:"); printer.PrintDataset(protectionProxyDataset1); ProtectionProxyDataset protectionProxyDataset2 = new ProtectionProxyDataset(user2); Console.WriteLine("Protection Proxy Dataset test sa ID 2:"); printer.PrintDataset(protectionProxyDataset2); Console.WriteLine("\n*****************************\n"); }