public TpmClient(TpmConfig config) { var http = new TpmHttp(config); this.Passwords = new TpmPasswordClient(http); this.MyPasswords = new TpmMyPasswordClient(http); this.Projects = new TpmProjectClient(http); this.Users = new TpmUserClient(http); this.Groups = new TpmGroupClient(http); }
static void Main(string[] args) { // Pass an instance of the calss implementing test methods Substrate = TestSubstrate.Create(args, new Tpm2Tests()); if (Substrate == null) { Console.WriteLine("Failed to initialize Tpm2Tester framework (bad command line " + "or no test cases found in MyTestCases). Aborting..."); return; } // Initialize the shortcuts to the Substrate members (just a convenience) TestCfg = Substrate.TestCfg; // Note that the members of TpmCfg are not initialized at this point yet. // But they will be when the test cases are invoked by the substrate later. TpmCfg = Substrate.TpmCfg; Substrate.RunTestSession(); }