-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathStoreCrudTests.cs
More file actions
82 lines (60 loc) · 3.26 KB
/
Copy pathStoreCrudTests.cs
File metadata and controls
82 lines (60 loc) · 3.26 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
using System.Threading.Tasks;
using Cleipnir.ResilientFunctions.Helpers;
using Cleipnir.ResilientFunctions.Storage;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Cleipnir.ResilientFunctions.Tests.InMemoryTests;
[TestClass]
public class StoreCrudTests : TestTemplates.StoreCrudTests
{
[TestMethod]
public override Task FunctionCanBeCreatedWithASingleParameterSuccessfully()
=> FunctionCanBeCreatedWithASingleParameterSuccessfully(FunctionStoreFactory.Create());
[TestMethod]
public override Task FunctionCanBeCreatedWithTwoParametersSuccessfully()
=> FunctionCanBeCreatedWithTwoParametersSuccessfully(FunctionStoreFactory.Create());
[TestMethod]
public override Task FunctionCanBeCreatedWithTwoParametersAndStateSuccessfully()
=> FunctionCanBeCreatedWithTwoParametersAndStateSuccessfully(FunctionStoreFactory.Create());
[TestMethod]
public override Task FetchingNonExistingFunctionReturnsNull()
=> FetchingNonExistingFunctionReturnsNull(FunctionStoreFactory.Create());
[TestMethod]
public override Task LeaseIsUpdatedWhenCurrentEpochMatches()
=> LeaseIsUpdatedWhenCurrentEpochMatches(FunctionStoreFactory.Create());
[TestMethod]
public override Task LeaseIsNotUpdatedWhenCurrentEpochIsDifferent()
=> LeaseIsNotUpdatedWhenCurrentEpochIsDifferent(FunctionStoreFactory.Create());
[TestMethod]
public override Task ExistingFunctionCanBeDeleted()
=> ExistingFunctionCanBeDeleted(FunctionStoreFactory.Create());
[TestMethod]
public override Task NonExistingFunctionCanBeDeleted()
=> NonExistingFunctionCanBeDeleted(FunctionStoreFactory.Create());
[TestMethod]
public override Task ParameterAndStateCanBeUpdatedOnExistingFunction()
=> ParameterAndStateCanBeUpdatedOnExistingFunction(FunctionStoreFactory.Create());
[TestMethod]
public override Task ParameterCanBeUpdatedOnExistingFunction()
=> ParameterCanBeUpdatedOnExistingFunction(FunctionStoreFactory.Create());
[TestMethod]
public override Task StateCanBeUpdatedOnExistingFunction()
=> StateCanBeUpdatedOnExistingFunction(FunctionStoreFactory.Create());
[TestMethod]
public override Task ParameterAndStateAreNotUpdatedWhenEpochDoesNotMatch()
=> ParameterAndStateAreNotUpdatedWhenEpochDoesNotMatch(FunctionStoreFactory.Create());
[TestMethod]
public override Task RestartExecutionsReturnsEmptyDictionaryWhenNoFlowsAreEligible()
=> RestartExecutionsReturnsEmptyDictionaryWhenNoFlowsAreEligible(FunctionStoreFactory.Create());
[TestMethod]
public override Task RestartExecutionsRestartsMultipleUnownedFlows()
=> RestartExecutionsRestartsMultipleUnownedFlows(FunctionStoreFactory.Create());
[TestMethod]
public override Task RestartExecutionsRestartsOnlyUnownedFlows()
=> RestartExecutionsRestartsOnlyUnownedFlows(FunctionStoreFactory.Create());
[TestMethod]
public override Task RestartExecutionsReturnsEmptyDictionaryForEmptyInput()
=> RestartExecutionsReturnsEmptyDictionaryForEmptyInput(FunctionStoreFactory.Create());
[TestMethod]
public override Task RestartExecutionsIncludesExistingEffects()
=> RestartExecutionsIncludesExistingEffects(FunctionStoreFactory.Create());
}