IVCloudServiceTest.cs 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Threading;
  4. namespace Vinno.vCloud.Common.FIS.Test
  5. {
  6. public interface IVCloudServiceTest
  7. {
  8. /// <summary>
  9. /// Item test status changed
  10. /// </summary>
  11. event EventHandler<VCloudServiceTestResult> TestStatusChanged;
  12. /// <summary>
  13. /// raised when Test Finished
  14. /// </summary>
  15. event EventHandler TestFinished;
  16. /// <summary>
  17. /// Test items
  18. /// </summary>
  19. IList<VCloudTestItem> Items { get; }
  20. /// <summary>
  21. /// Execute vCloud test
  22. /// </summary>
  23. /// <param name="cancelTokenSource"></param>
  24. /// <param name="vCloudHost"></param>
  25. /// <param name="vCloudPort"></param>
  26. /// <param name="enableRemedicalService"></param>
  27. /// <param name="enableLiveUsService"></param>
  28. /// <param name="terminalName"></param>
  29. void Execute(CancellationTokenSource cancelTokenSource, bool enableRemedicalService, bool enableLiveUsService, string terminalName = null);
  30. /// <summary>
  31. /// Retry vcloud test
  32. /// </summary>
  33. /// <param name="cancelTokenSource"></param>
  34. void Retry(CancellationTokenSource cancelTokenSource);
  35. /// <summary>
  36. /// Skip current test item
  37. /// </summary>
  38. /// <param name="cancelTokenSource"></param>
  39. void Skip(CancellationTokenSource cancelTokenSource);
  40. /// <summary>
  41. /// Close test;
  42. /// </summary>
  43. void Close();
  44. }
  45. }