33 references to OperationType
Microsoft.AspNetCore.JsonPatch (22)
Operations\Operation.cs (9)
38
case
OperationType
.Add:
41
case
OperationType
.Remove:
44
case
OperationType
.Replace:
47
case
OperationType
.Move:
50
case
OperationType
.Copy:
53
case
OperationType
.Test:
70
return (OperationType ==
OperationType
.Add
71
|| OperationType ==
OperationType
.Replace
72
|| OperationType ==
OperationType
.Test);
Operations\OperationBase.cs (6)
13
private
OperationType
_operationType;
16
public
OperationType
OperationType
36
OperationType
result;
39
result =
OperationType
.Invalid;
65
return (OperationType ==
OperationType
.Move
66
|| OperationType ==
OperationType
.Copy);
Operations\OperationOfT.cs (7)
40
case
OperationType
.Add:
43
case
OperationType
.Remove:
46
case
OperationType
.Replace:
49
case
OperationType
.Move:
52
case
OperationType
.Copy:
55
case
OperationType
.Test:
65
case
OperationType
.Invalid:
Microsoft.AspNetCore.JsonPatch.Tests (11)
OperationBaseTests.cs (11)
11
[InlineData("ADd",
OperationType
.Add)]
12
[InlineData("Copy",
OperationType
.Copy)]
13
[InlineData("mOVE",
OperationType
.Move)]
14
[InlineData("REMOVE",
OperationType
.Remove)]
15
[InlineData("replace",
OperationType
.Replace)]
16
[InlineData("TeSt",
OperationType
.Test)]
17
public void SetValidOperationType(string op,
OperationType
operationType)
28
[InlineData("invalid",
OperationType
.Invalid)]
29
[InlineData("coppy",
OperationType
.Invalid)]
30
[InlineData("notvalid",
OperationType
.Invalid)]
31
public void InvalidOperationType_SetsOperationTypeInvalid(string op,
OperationType
operationType)