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