File tree 4 files changed +15
-4
lines changed
4 files changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,13 @@ RUN dotnet restore
10
10
11
11
COPY . ./
12
12
13
+ RUN apt-get update && apt-get install -y libcap2-bin libsnappy1v5 && \
14
+ ln -s /lib/x86_64-linux-gnu/libdl.so.2 /usr/lib/x86_64-linux-gnu/libdl.so && \
15
+ ln -s /lib/x86_64-linux-gnu/libc.so.6 /usr/lib/x86_64-linux-gnu/libc.so && \
16
+ rm -rf /var/lib/apt/lists/*
17
+
18
+ RUN dotnet test Hexastore.Test
19
+
13
20
# Copy everything else and build
14
21
RUN dotnet publish -c Release ./Hexastore.Web -o /app/out
15
22
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
2
3
3
<PropertyGroup >
4
- <TargetFramework >netcoreapp3.0 </TargetFramework >
4
+ <TargetFramework >netcoreapp2.2 </TargetFramework >
5
5
6
6
<IsPackable >false</IsPackable >
7
7
</PropertyGroup >
Original file line number Diff line number Diff line change 2
2
using System . Collections . Generic ;
3
3
using System . Linq ;
4
4
using System . Text ;
5
- using System . Text . Json . Serialization ;
6
5
using Hexastore . Parser ;
7
6
using Microsoft . VisualStudio . TestTools . UnitTesting ;
8
7
using Newtonsoft . Json ;
@@ -133,7 +132,7 @@ public void Json_Read_Write_Relationship_Returns()
133
132
}
134
133
135
134
[ TestMethod ]
136
- public void Patch_Returns_With_Relationship ( )
135
+ public void Patch_With_Relationship_Returns ( )
137
136
{
138
137
var patch = new
139
138
{
@@ -173,7 +172,7 @@ public void Patch_Returns_With_Relationship()
173
172
}
174
173
175
174
[ TestMethod ]
176
- public void Patch_Returns_With_Values ( )
175
+ public void Patch_With_Values_Returns ( )
177
176
{
178
177
var doc = new
179
178
{
Original file line number Diff line number Diff line change @@ -56,6 +56,11 @@ public override bool Equals(object obj)
56
56
}
57
57
return t . S . Equals ( S ) && t . P . Equals ( P ) && t . O . CompareTo ( O ) == 0 && t . IsId == IsId ;
58
58
}
59
+
60
+ public override int GetHashCode ( )
61
+ {
62
+ return ( S + P + O + IsId . ToString ( ) ) . GetHashCode ( ) ;
63
+ }
59
64
}
60
65
61
66
public class QueryUnit
You can’t perform that action at this time.
0 commit comments