-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathControlPanelTests.cs
More file actions
148 lines (112 loc) · 6.89 KB
/
ControlPanelTests.cs
File metadata and controls
148 lines (112 loc) · 6.89 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
using System.Threading.Tasks;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Cleipnir.ResilientFunctions.Tests.InMemoryTests.RFunctionTests;
[TestClass]
public class ControlPanelTests : TestTemplates.FunctionTests.ControlPanelTests
{
[TestMethod]
public override Task ExistingActionCanBeDeletedFromControlPanel()
=> ExistingActionCanBeDeletedFromControlPanel(Utils.CreateInMemoryFunctionStoreTask());
[TestMethod]
public override Task ExistingFunctionCanBeDeletedFromControlPanel()
=> ExistingFunctionCanBeDeletedFromControlPanel(Utils.CreateInMemoryFunctionStoreTask());
[TestMethod]
public override Task PostponingExistingActionFromControlPanelSucceeds()
=> PostponingExistingActionFromControlPanelSucceeds(Utils.CreateInMemoryFunctionStoreTask());
[TestMethod]
public override Task PostponingExistingFunctionFromControlPanelSucceeds()
=> PostponingExistingFunctionFromControlPanelSucceeds(Utils.CreateInMemoryFunctionStoreTask());
[TestMethod]
public override Task FailingExistingActionFromControlPanelSucceeds()
=> FailingExistingActionFromControlPanelSucceeds(Utils.CreateInMemoryFunctionStoreTask());
[TestMethod]
public override Task FailingExistingFunctionFromControlPanelSucceeds()
=> FailingExistingFunctionFromControlPanelSucceeds(Utils.CreateInMemoryFunctionStoreTask());
[TestMethod]
public override Task SucceedingExistingActionFromControlPanelSucceeds()
=> SucceedingExistingActionFromControlPanelSucceeds(Utils.CreateInMemoryFunctionStoreTask());
[TestMethod]
public override Task SucceedingExistingParamlessFromControlPanelSucceeds()
=> SucceedingExistingParamlessFromControlPanelSucceeds(FunctionStoreFactory.Create());
[TestMethod]
public override Task SucceedingExistingFunctionFromControlPanelSucceeds()
=> SucceedingExistingFunctionFromControlPanelSucceeds(Utils.CreateInMemoryFunctionStoreTask());
[TestMethod]
public override Task ReInvokingExistingFunctionFromControlPanelSucceeds()
=> ReinvokingExistingFunctionFromControlPanelSucceeds(Utils.CreateInMemoryFunctionStoreTask());
[TestMethod]
public override Task ScheduleReInvokingExistingActionFromControlPanelSucceeds()
=> ScheduleReInvokingExistingActionFromControlPanelSucceeds(Utils.CreateInMemoryFunctionStoreTask());
[TestMethod]
public override Task WaitingForExistingFunctionFromControlPanelToCompleteSucceeds()
=> WaitingForExistingFunctionFromControlPanelToCompleteSucceeds(Utils.CreateInMemoryFunctionStoreTask());
[TestMethod]
public override Task WaitingForExistingActionFromControlPanelToCompleteSucceeds()
=> WaitingForExistingActionFromControlPanelToCompleteSucceeds(Utils.CreateInMemoryFunctionStoreTask());
[TestMethod]
public override Task ReInvokeRFuncSucceedsAfterSuccessfullySavingParamAndState()
=> ReInvokeRFuncSucceedsAfterSuccessfullySavingParamAndState(Utils.CreateInMemoryFunctionStoreTask());
[TestMethod]
public override Task ReInvokeRActionSucceedsAfterSuccessfullySavingParamAndState()
=> ReInvokeRActionSucceedsAfterSuccessfullySavingParamAndState(Utils.CreateInMemoryFunctionStoreTask());
[TestMethod]
public override Task ControlPanelsExistingMessagesContainsPreviouslyAddedMessages()
=> ControlPanelsExistingMessagesContainsPreviouslyAddedMessages(Utils.CreateInMemoryFunctionStoreTask());
[TestMethod]
public override Task ExistingMessagesCanBeReplacedUsingControlPanel()
=> ExistingMessagesCanBeReplacedUsingControlPanel(Utils.CreateInMemoryFunctionStoreTask());
[TestMethod]
public override Task ExistingMessagesAreNotAffectedByControlPanelSaveChangesInvocation()
=> ExistingMessagesAreNotAffectedByControlPanelSaveChangesInvocation(Utils.CreateInMemoryFunctionStoreTask());
[TestMethod]
public override Task ConcurrentModificationOfExistingMessagesCausesExceptionOnSaveChanges()
=> ConcurrentModificationOfExistingMessagesCausesExceptionOnSaveChanges(Utils.CreateInMemoryFunctionStoreTask());
[TestMethod]
public override Task ConcurrentModificationOfExistingMessagesDoesNotCauseExceptionOnSaveChangesWhenMessagesAreNotReplaced()
=> ConcurrentModificationOfExistingMessagesDoesNotCauseExceptionOnSaveChangesWhenMessagesAreNotReplaced(Utils.CreateInMemoryFunctionStoreTask());
[TestMethod]
public override Task ConcurrentModificationOfExistingMessagesCausesExceptionOnSave()
=> ConcurrentModificationOfExistingMessagesCausesExceptionOnSave(Utils.CreateInMemoryFunctionStoreTask());
[TestMethod]
public override Task ConcurrentModificationOfExistingMessagesDoesNotCauseExceptionOnSucceedWhenMessagesAreNotReplaced()
=> ConcurrentModificationOfExistingMessagesDoesNotCauseExceptionOnSucceedWhenMessagesAreNotReplaced(Utils.CreateInMemoryFunctionStoreTask());
[TestMethod]
public override Task ExistingMessagesCanBeReplaced()
=> ExistingMessagesCanBeReplaced(Utils.CreateInMemoryFunctionStoreTask());
[TestMethod]
public override Task ExistingEffectCanBeReplacedWithValue()
=> ExistingEffectCanBeReplacedWithValue(Utils.CreateInMemoryFunctionStoreTask());
[TestMethod]
public override Task EffectCanBeStarted()
=> EffectCanBeStarted(Utils.CreateInMemoryFunctionStoreTask());
[TestMethod]
public override Task EffectRawBytesResultCanFetched()
=> EffectRawBytesResultCanFetched(FunctionStoreFactory.Create());
[TestMethod]
public override Task ExistingEffectCanBeReplaced()
=> ExistingEffectCanBeReplaced(Utils.CreateInMemoryFunctionStoreTask());
[TestMethod]
public override Task ExistingEffectCanBeRemoved()
=> ExistingEffectCanBeRemoved(Utils.CreateInMemoryFunctionStoreTask());
[TestMethod]
public override Task EffectsAreOnlyFetchedOnPropertyInvocation()
=> EffectsAreOnlyFetchedOnPropertyInvocation(FunctionStoreFactory.Create());
[TestMethod]
public override Task EffectsAreCachedAfterInitialFetch()
=> EffectsAreCachedAfterInitialFetch(FunctionStoreFactory.Create());
[TestMethod]
public override Task EffectsAreUpdatedAfterRefresh()
=> EffectsAreUpdatedAfterRefresh(Utils.CreateInMemoryFunctionStoreTask());
[TestMethod]
public override Task ExistingEffectCanBeSetToFailed()
=> ExistingEffectCanBeSetToFailed(Utils.CreateInMemoryFunctionStoreTask());
[TestMethod]
public override Task SaveChangesPersistsChangedResult()
=> SaveChangesPersistsChangedResult(Utils.CreateInMemoryFunctionStoreTask());
[TestMethod]
public override Task DeleteRemovesFunctionFromAllStores()
=> DeleteRemovesFunctionFromAllStores(FunctionStoreFactory.Create());
[TestMethod]
public override Task ClearFailedEffectsRemovesFailedEffectBeforeRestart()
=> ClearFailedEffectsRemovesFailedEffectBeforeRestart(FunctionStoreFactory.Create());
}