示例#1
0
 public TextFileReaderRoleBased(string filePath, string fileName, IUserAuthorizationService userAuthorizationService,
                                IFileRoleValidationService fileRoleValidationService)
     : base(filePath, SetExtension(fileName))
 {
     _userAuthorizationService  = userAuthorizationService ?? throw new ArgumentException("User Authorization service is not created");
     _fileRoleValidationService = fileRoleValidationService ?? throw new ArgumentException("File Role Validation service is not created");
 }
示例#2
0
 public XmlFileReaderRoleBased(string filePath, string fileName, IUserAuthorizationService userAuthorizationService,
                               IFileRoleValidationService fileRoleValidationService, IDecryptDataService decryptDataService)
     : base(filePath, SetExtension(fileName), decryptDataService)
 {
     _userAuthorizationService  = userAuthorizationService ?? throw new ArgumentException("User Authorization service is not created");
     _fileRoleValidationService = fileRoleValidationService ?? throw new ArgumentException("File Role Validation service is not created");
     _decryptDataService        = decryptDataService ?? throw new ArgumentException("Decrypt Data service is not created");
     _ecryptedFile = true;
 }