Skip to content

Commit dfb31dd

Browse files
authored
Upgrading to 5.18.1 (#477)
1 parent 87da5b1 commit dfb31dd

File tree

6 files changed

+238
-4
lines changed

6 files changed

+238
-4
lines changed

Neo4jClient.Tests/BoltGraphClientTests/BoltGraphClientTests.cs

Lines changed: 60 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using System;
2+
using System.Collections;
23
using System.Collections.Generic;
34
using System.Linq;
45
using System.Threading.Tasks;
@@ -29,17 +30,74 @@ public TestRecord(IDictionary<string, object> items)
2930
_contents = items;
3031
}
3132

33+
/// <inheritdoc />
34+
T IRecord.Get<T>(string key)
35+
{
36+
throw new NotImplementedException();
37+
}
38+
39+
/// <inheritdoc />
40+
bool IRecord.TryGet<T>(string key, out T value)
41+
{
42+
throw new NotImplementedException();
43+
}
44+
45+
/// <inheritdoc />
46+
T IRecord.GetCaseInsensitive<T>(string key)
47+
{
48+
throw new NotImplementedException();
49+
}
50+
51+
/// <inheritdoc />
52+
bool IRecord.TryGetCaseInsensitive<T>(string key, out T value)
53+
{
54+
throw new NotImplementedException();
55+
}
56+
3257
object IRecord.this[int index]
3358
{
3459
get { throw new NotImplementedException(); }
3560
}
3661

37-
object IRecord.this[string key] => _contents[key];
62+
/// <inheritdoc />
63+
bool IReadOnlyDictionary<string, object>.ContainsKey(string key)
64+
{
65+
throw new NotImplementedException();
66+
}
67+
68+
/// <inheritdoc />
69+
bool IReadOnlyDictionary<string, object>.TryGetValue(string key, out object value)
70+
{
71+
throw new NotImplementedException();
72+
}
73+
74+
/// <inheritdoc />
75+
object IReadOnlyDictionary<string, object>.this[string key] => _contents[key];
76+
77+
/// <inheritdoc />
78+
IEnumerable<string> IReadOnlyDictionary<string, object>.Keys => Keys;
79+
80+
/// <inheritdoc />
81+
IEnumerable<object> IReadOnlyDictionary<string, object>.Values => throw new NotImplementedException();
3882

3983
public IReadOnlyDictionary<string, object> Values { get; }
4084
public IReadOnlyList<string> Keys { get; }
4185

42-
86+
87+
/// <inheritdoc />
88+
IEnumerator<KeyValuePair<string, object>> IEnumerable<KeyValuePair<string, object>>.GetEnumerator()
89+
{
90+
throw new NotImplementedException();
91+
}
92+
93+
/// <inheritdoc />
94+
IEnumerator IEnumerable.GetEnumerator()
95+
{
96+
throw new NotImplementedException();
97+
}
98+
99+
/// <inheritdoc />
100+
int IReadOnlyCollection<KeyValuePair<string, object>>.Count => throw new NotImplementedException();
43101
}
44102
public class ServerInfo : TestStatementResult
45103
{

Neo4jClient.Tests/BoltGraphClientTests/Cypher/ExecuteGetCypherResultsTests.cs

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,18 @@ public class TestRelationship : IRelationship
3838
{
3939
#region Implementation of IEntity
4040

41+
/// <inheritdoc />
42+
T IEntity.Get<T>(string key)
43+
{
44+
throw new NotImplementedException();
45+
}
46+
47+
/// <inheritdoc />
48+
bool IEntity.TryGet<T>(string key, out T value)
49+
{
50+
throw new NotImplementedException();
51+
}
52+
4153
public object this[string key]
4254
{
4355
get { throw new NotImplementedException(); }
@@ -72,6 +84,18 @@ public bool Equals(IRelationship other)
7284
public class TestNode : INode {
7385
#region Implementation of IEntity
7486

87+
/// <inheritdoc />
88+
T IEntity.Get<T>(string key)
89+
{
90+
throw new NotImplementedException();
91+
}
92+
93+
/// <inheritdoc />
94+
bool IEntity.TryGet<T>(string key, out T value)
95+
{
96+
throw new NotImplementedException();
97+
}
98+
7599
public object this[string key]
76100
{
77101
get { throw new NotImplementedException(); }

Neo4jClient.Tests/BoltTestHarness.cs

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using System;
2+
using System.Collections;
23
using System.Collections.Generic;
34
using System.Threading.Tasks;
45
using Moq;
@@ -7,17 +8,74 @@
78
namespace Neo4jClient.Tests
89
{
910
public class TestRecord : IRecord{
11+
/// <inheritdoc />
12+
T IRecord.Get<T>(string key)
13+
{
14+
throw new NotImplementedException();
15+
}
16+
17+
/// <inheritdoc />
18+
bool IRecord.TryGet<T>(string key, out T value)
19+
{
20+
throw new NotImplementedException();
21+
}
22+
23+
/// <inheritdoc />
24+
T IRecord.GetCaseInsensitive<T>(string key)
25+
{
26+
throw new NotImplementedException();
27+
}
28+
29+
/// <inheritdoc />
30+
bool IRecord.TryGetCaseInsensitive<T>(string key, out T value)
31+
{
32+
throw new NotImplementedException();
33+
}
34+
1035
/// <inheritdoc />
1136
public object this[int index] => throw new NotImplementedException();
1237

38+
/// <inheritdoc />
39+
bool IReadOnlyDictionary<string, object>.ContainsKey(string key)
40+
{
41+
throw new NotImplementedException();
42+
}
43+
44+
/// <inheritdoc />
45+
bool IReadOnlyDictionary<string, object>.TryGetValue(string key, out object value)
46+
{
47+
throw new NotImplementedException();
48+
}
49+
1350
/// <inheritdoc />
1451
public object this[string key] => throw new NotImplementedException();
1552

53+
/// <inheritdoc />
54+
IEnumerable<string> IReadOnlyDictionary<string, object>.Keys => Keys;
55+
56+
/// <inheritdoc />
57+
IEnumerable<object> IReadOnlyDictionary<string, object>.Values => throw new NotImplementedException();
58+
1659
/// <inheritdoc />
1760
public IReadOnlyDictionary<string, object> Values { get; }
1861

1962
/// <inheritdoc />
2063
public IReadOnlyList<string> Keys { get; }
64+
65+
/// <inheritdoc />
66+
IEnumerator<KeyValuePair<string, object>> IEnumerable<KeyValuePair<string, object>>.GetEnumerator()
67+
{
68+
throw new NotImplementedException();
69+
}
70+
71+
/// <inheritdoc />
72+
IEnumerator IEnumerable.GetEnumerator()
73+
{
74+
throw new NotImplementedException();
75+
}
76+
77+
/// <inheritdoc />
78+
int IReadOnlyCollection<KeyValuePair<string, object>>.Count => throw new NotImplementedException();
2179
}
2280

2381
public class BoltTestHarness : IDisposable

Neo4jClient.Tests/StatementResultHelperTests.cs

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,18 @@ public TestRelationship(IDictionary<string, object> properties, int id = 99, int
4343
ElementId = id.ToString();
4444
}
4545

46+
/// <inheritdoc />
47+
T IEntity.Get<T>(string key)
48+
{
49+
throw new NotImplementedException();
50+
}
51+
52+
/// <inheritdoc />
53+
bool IEntity.TryGet<T>(string key, out T value)
54+
{
55+
throw new NotImplementedException();
56+
}
57+
4658
public object this[string key] => Properties[key];
4759

4860
public IReadOnlyDictionary<string, object> Properties { get; }
@@ -84,6 +96,18 @@ public TestNode(Dictionary<string, object> properties, int id = 100)
8496
Labels = new List<string> { "Foo" };
8597
}
8698

99+
/// <inheritdoc />
100+
T IEntity.Get<T>(string key)
101+
{
102+
throw new NotImplementedException();
103+
}
104+
105+
/// <inheritdoc />
106+
bool IEntity.TryGet<T>(string key, out T value)
107+
{
108+
throw new NotImplementedException();
109+
}
110+
87111
public object this[string key] => Properties[key];
88112

89113
public IReadOnlyDictionary<string, object> Properties { get; }

Neo4jClient/Neo4jClient.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
2323
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
2424
<PackageReference Include="Microsoft.VisualBasic" Version="10.3.0" />
25-
<PackageReference Include="Neo4j.Driver.Signed" Version="5.15.0" />
25+
<PackageReference Include="Neo4j.Driver.Signed" Version="5.18.1" />
2626
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
2727
<PackageReference Include="System.ComponentModel.Annotations" Version="5.0.0" />
2828
<PackageReference Include="System.Dynamic.Runtime" Version="4.3.0" />

Neo4jClient/StatementResultHelper.cs

Lines changed: 71 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,6 +527,18 @@ public Neo4jClientNode(IEnumerable<KeyValuePair<string, object>> properties)
527527
foreach (var p in properties) this.properties.Add(p.Key, p.Value);
528528
}
529529

530+
/// <inheritdoc />
531+
T IEntity.Get<T>(string key)
532+
{
533+
throw new NotImplementedException();
534+
}
535+
536+
/// <inheritdoc />
537+
bool IEntity.TryGet<T>(string key, out T value)
538+
{
539+
throw new NotImplementedException();
540+
}
541+
530542
public object this[string key] => properties[key];
531543

532544
public IReadOnlyDictionary<string, object> Properties => new ReadOnlyDictionary<string, object>(properties);
@@ -582,11 +594,54 @@ public Neo4jClientRecord(IRecord record, string identifier)
582594
: new Dictionary<string, object> {{identifier, record[identifier]}};
583595
}
584596

597+
/// <inheritdoc />
598+
T IRecord.Get<T>(string key)
599+
{
600+
throw new NotImplementedException();
601+
}
602+
603+
/// <inheritdoc />
604+
bool IRecord.TryGet<T>(string key, out T value)
605+
{
606+
throw new NotImplementedException();
607+
}
608+
609+
/// <inheritdoc />
610+
T IRecord.GetCaseInsensitive<T>(string key)
611+
{
612+
throw new NotImplementedException();
613+
}
614+
615+
/// <inheritdoc />
616+
bool IRecord.TryGetCaseInsensitive<T>(string key, out T value)
617+
{
618+
throw new NotImplementedException();
619+
}
620+
585621
[EditorBrowsable(EditorBrowsableState.Never)]
586622
[Obsolete("This should not be called internally.")]
587623
object IRecord.this[int index] => throw new NotImplementedException("This should not be called.");
588624

589-
object IRecord.this[string key] => Values[key];
625+
/// <inheritdoc />
626+
bool IReadOnlyDictionary<string, object>.ContainsKey(string key)
627+
{
628+
throw new NotImplementedException();
629+
}
630+
631+
/// <inheritdoc />
632+
bool IReadOnlyDictionary<string, object>.TryGetValue(string key, out object value)
633+
{
634+
throw new NotImplementedException();
635+
}
636+
637+
/// <inheritdoc />
638+
object IReadOnlyDictionary<string, object>.this[string key] => Values[key];
639+
640+
/// <inheritdoc />
641+
IEnumerable<string> IReadOnlyDictionary<string, object>.Keys => Keys;
642+
643+
/// <inheritdoc />
644+
IEnumerable<object> IReadOnlyDictionary<string, object>.Values => throw new NotImplementedException();
590645

591646
public IReadOnlyDictionary<string, object> Values { get; }
592647
public IReadOnlyList<string> Keys => Values.Keys.ToList();
@@ -595,6 +650,21 @@ public object[] AsParameters(IGraphClient graphClient)
595650
{
596651
return new object[] {this, graphClient};
597652
}
653+
654+
/// <inheritdoc />
655+
IEnumerator<KeyValuePair<string, object>> IEnumerable<KeyValuePair<string, object>>.GetEnumerator()
656+
{
657+
throw new NotImplementedException();
658+
}
659+
660+
/// <inheritdoc />
661+
IEnumerator IEnumerable.GetEnumerator()
662+
{
663+
throw new NotImplementedException();
664+
}
665+
666+
/// <inheritdoc />
667+
int IReadOnlyCollection<KeyValuePair<string, object>>.Count => throw new NotImplementedException();
598668
}
599669
}
600670
}

0 commit comments

Comments
 (0)