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