TestStartModel.cs 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. using System;
  2. using Unity.Cloud.Collaborate.Models;
  3. using Unity.Cloud.Collaborate.Models.Enums;
  4. using Unity.Cloud.Collaborate.UserInterface;
  5. namespace Unity.Cloud.Collaborate.Tests.Models
  6. {
  7. internal class TestStartModel : IStartModel
  8. {
  9. public int requestTurnOnServiceCount;
  10. public int showServicePageCount;
  11. public int showLoginPageCount;
  12. public int showNoSeatPageCount;
  13. public event Action StateChanged = delegate { };
  14. public void TriggerStateChanged()
  15. {
  16. StateChanged();
  17. }
  18. public event Action<ProjectStatus> ProjectStatusChanged = delegate { };
  19. public void TriggerProjectStatusChanged(ProjectStatus status)
  20. {
  21. ProjectStatusChanged(status);
  22. }
  23. public ProjectStatus ProjectStatus { get; set; }
  24. public void OnStart()
  25. {
  26. throw new NotImplementedException();
  27. }
  28. public void OnStop()
  29. {
  30. throw new NotImplementedException();
  31. }
  32. public void RestoreState(IWindowCache cache)
  33. {
  34. throw new NotImplementedException();
  35. }
  36. public void SaveState(IWindowCache cache)
  37. {
  38. throw new NotImplementedException();
  39. }
  40. public void RequestTurnOnService()
  41. {
  42. requestTurnOnServiceCount++;
  43. }
  44. public void ShowServicePage()
  45. {
  46. showServicePageCount++;
  47. }
  48. public void ShowLoginPage()
  49. {
  50. showLoginPageCount++;
  51. }
  52. public void ShowNoSeatPage()
  53. {
  54. showNoSeatPageCount++;
  55. }
  56. }
  57. }