public CryptographyResponse Execute(CryptographyRequest request) { return(new CryptographyResponse(new List <FileInfo> { new FileInfo("TestFile.txt", Encoding.ASCII.GetBytes("HelloWorld")), new FileInfo("TestFile.txt", Encoding.ASCII.GetBytes("HelloWorld")), new FileInfo("TestFile.txt", Encoding.ASCII.GetBytes("HelloWorld")) })); }
public CryptographyResponse Execute(CryptographyRequest req) { try { string gnuCmd = this.cmdInterpretor.InterporateCommandRequest(req); string osResult = this.osTerminal.Execute(gnuCmd); CryptographyResponse gnuResponse = this.cmdInterpretor.InterporateResponse(req, osResult); return(gnuResponse); } catch (Exception) { throw; } }