Skip to content

Commit 9b544c8

Browse files
author
Bart Koelman
committed
1 parent 2adff3c commit 9b544c8

File tree

34 files changed

+88
-57
lines changed

34 files changed

+88
-57
lines changed

src/Examples/GettingStarted/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
namespace GettingStarted
55
{
6-
public class Program
6+
public static class Program
77
{
88
public static void Main(string[] args)
99
{

src/Examples/JsonApiDotNetCoreExample/Definitions/TagHooksDefinition.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ public class TagHooksDefinition : ResourceHooksDefinition<Tag>
1111
{
1212
public TagHooksDefinition(IResourceGraph resourceGraph) : base(resourceGraph) { }
1313

14-
public override IEnumerable<Tag> BeforeCreate(IResourceHashSet<Tag> affected, ResourcePipeline pipeline)
14+
public override IEnumerable<Tag> BeforeCreate(IResourceHashSet<Tag> resources, ResourcePipeline pipeline)
1515
{
16-
return base.BeforeCreate(affected, pipeline);
16+
return base.BeforeCreate(resources, pipeline);
1717
}
1818

1919
public override IEnumerable<Tag> OnReturn(HashSet<Tag> resources, ResourcePipeline pipeline)

src/Examples/JsonApiDotNetCoreExample/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace JsonApiDotNetCoreExample
66
{
7-
public class Program
7+
public static class Program
88
{
99
public static void Main(string[] args)
1010
{

src/Examples/MultiDbContextExample/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
namespace MultiDbContextExample
55
{
6-
public class Program
6+
public static class Program
77
{
88
public static void Main(string[] args)
99
{

src/Examples/NoEntityFrameworkExample/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
namespace NoEntityFrameworkExample
55
{
6-
public class Program
6+
public static class Program
77
{
88
public static void Main(string[] args)
99
{

src/Examples/ReportsExample/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
namespace ReportsExample
55
{
6-
public class Program
6+
public static class Program
77
{
88
public static void Main(string[] args)
99
{

src/JsonApiDotNetCore/AtomicOperations/LocalIdValidator.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ public LocalIdValidator(ILocalIdTracker localIdTracker, IResourceContextProvider
2525

2626
public void Validate(IEnumerable<OperationContainer> operations)
2727
{
28+
ArgumentGuard.NotNull(operations, nameof(operations));
29+
2830
_localIdTracker.Reset();
2931

3032
int operationIndex = 0;

src/JsonApiDotNetCore/Hooks/Internal/Discovery/LoadDatabaseValuesAttribute.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ public sealed class LoadDatabaseValuesAttribute : Attribute
77
{
88
public bool Value { get; }
99

10-
public LoadDatabaseValuesAttribute(bool mode = true)
10+
public LoadDatabaseValuesAttribute(bool value = true)
1111
{
12-
Value = mode;
12+
Value = value;
1313
}
1414
}
1515
}

src/JsonApiDotNetCore/Hooks/Internal/Execution/DiffableResourceHashSet.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ public IEnumerable<ResourceDiffPair<TResource>> GetDiffs()
5757
/// <inheritdoc />
5858
public new HashSet<TResource> GetAffected(Expression<Func<TResource, object>> navigationAction)
5959
{
60+
ArgumentGuard.NotNull(navigationAction, nameof(navigationAction));
61+
6062
var propertyInfo = TypeHelper.ParseNavigationExpression(navigationAction);
6163
var propertyType = propertyInfo.PropertyType;
6264
if (TypeHelper.IsOrImplementsInterface(propertyType, typeof(IEnumerable)))

src/JsonApiDotNetCore/Hooks/Internal/Execution/IRelationshipGetters.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ public interface IRelationshipGetters<TLeftResource> where TLeftResource : class
1616
/// </summary>
1717
Dictionary<RelationshipAttribute, HashSet<TLeftResource>> GetByRelationship<TRightResource>() where TRightResource : class, IIdentifiable;
1818
/// <summary>
19-
/// Gets a dictionary of all resources that have an affected relationship to type <paramref name="relatedResourceType"/>
19+
/// Gets a dictionary of all resources that have an affected relationship to type <paramref name="resourceType"/>
2020
/// </summary>
21-
Dictionary<RelationshipAttribute, HashSet<TLeftResource>> GetByRelationship(Type relatedResourceType);
21+
Dictionary<RelationshipAttribute, HashSet<TLeftResource>> GetByRelationship(Type resourceType);
2222
/// <summary>
2323
/// Gets a collection of all the resources for the property within <paramref name="navigationAction"/>
2424
/// has been affected by the request

0 commit comments

Comments
 (0)