TestChangesView.cs
2.55 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
using System.Collections.Generic;
using Unity.Cloud.Collaborate.Models.Structures;
using Unity.Cloud.Collaborate.Presenters;
using Unity.Cloud.Collaborate.Views;
namespace Unity.Cloud.Collaborate.Tests.Presenters
{
internal class TestChangesView : IChangesView
{
public int SetBusyStatusCount;
public bool? SetBusyStatusValue;
public int SetSearchQueryCount;
public string SetSearchQueryValue;
public int SetRevisionSummaryCount;
public string SetRevisionSummaryValue;
public int SetConflictsCount;
public IReadOnlyList<IChangeEntryData> SetConflictsValue;
public int SetChangesCount;
public IReadOnlyList<IChangeEntryData> SetChangesValue;
public int SetToggledCountCount;
public int? SetToggledCountValue;
public int SetPublishEnabledCount;
public bool? SetPublishEnabledValue;
public string SetPublishEnabledReason;
public int DisplayDialogueCount;
public IChangesPresenter Presenter { get; set; }
public void SetBusyStatus(bool busy)
{
SetBusyStatusCount++;
SetBusyStatusValue = busy;
}
public void SetSearchQuery(string query)
{
SetSearchQueryCount++;
SetSearchQueryValue = query;
}
public void SetRevisionSummary(string message)
{
SetRevisionSummaryCount++;
SetRevisionSummaryValue = message;
}
public void SetConflicts(IReadOnlyList<IChangeEntryData> list)
{
SetConflictsCount++;
SetConflictsValue = list;
}
public void SetChanges(IReadOnlyList<IChangeEntryData> list)
{
SetChangesCount++;
SetChangesValue = list;
}
public void SetToggledCount(int count)
{
SetToggledCountCount++;
SetToggledCountValue = count;
}
public void SetPublishEnabled(bool enabled, string reason = null)
{
SetPublishEnabledCount++;
SetPublishEnabledValue = enabled;
SetPublishEnabledReason = reason;
}
public bool DisplayDialogue(string title, string message, string affirmative)
{
DisplayDialogueCount++;
return true;
}
public bool DisplayDialogue(string title, string message, string affirmative, string negative)
{
DisplayDialogueCount++;
return true;
}
public void SetSelectedChanges()
{
}
}
}