static void Main(string[] args) { VirtualProxyDataset virtualProxyDataset = new VirtualProxyDataset("sensitiveData.csv"); User user1 = User.GenerateUser("John"); User user2 = User.GenerateUser("Owen"); ProtectionProxyDataset protectionProxyDataset1 = new ProtectionProxyDataset(user1); ProtectionProxyDataset protectionProxyDataset2 = new ProtectionProxyDataset(user2); DataConsolePrinter dataConsolePrinter = new DataConsolePrinter(); try { dataConsolePrinter.PrintData(protectionProxyDataset1); dataConsolePrinter.PrintData(protectionProxyDataset2); } catch (Exception exception) { Console.WriteLine(exception.Message); } }
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"); }