private static void TryToAccessToTheSharedFolder(string username, string password, Role role) { Console.WriteLine( $"\nEmployee with username: {username} and role {role} " + $"is trying to access to the shared folder..."); var employee = new Employee(username, password, role); var sharedFolder = new SharedFolder(); var folderProxy = new SharedFolderProxy(employee, sharedFolder); folderProxy.Access(); }
public SharedFolderProxy(Employee employee, SharedFolder sharedFolder) { _employee = employee; _sharedFolder = sharedFolder; }