Skip to content

Commit 765c341

Browse files
committed
Delete unnecessary files
1 parent e0e3999 commit 765c341

19 files changed

+4
-25
lines changed

src/RediSharp.Core/Connection.cs

-12
This file was deleted.
Binary file not shown.
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
efb4e868d84205ccfbe6f98fc8e691bafa1327e0
1+
ca41faf7cf3016ad7337c992c4ce194a717aeb06
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

tests/RediSharp.Tests/UnitTest1.cs

+2-11
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ namespace RediSharp.Tests;
1515

1616
public class UnitTest1
1717
{
18-
static ConnectionMultiplexer redis = ConnectionMultiplexer.Connect("127.0.0.1");
19-
public static IDatabase db = redis.GetDatabase();
20-
2118
Mock<IDatabase> _mock = new Mock<IDatabase>();
2219
public class Person
2320
{
@@ -35,14 +32,8 @@ public void TestJsonSet()
3532

3633
db.JsonSet("Person:Shachar", "$", obj);
3734
//var expected = new[] {"JSON.SET", "Person:Shachar", "$", "{\"Name\":\"Shachar\",\"Age\":23}" };
38-
39-
40-
//_mock.Setup(x => x.Execute("JSON.SET", It.IsAny<string[]>())).Returns(Redis));
41-
//_mock.Verify(x => x.Execute("JSON.SET", "Person:Shachar", "$", "{\"Name\":\"Shachar\",\"Age\":23}" ));
35+
//_mock.Setup(x => x.Execute("JSON.SET", It.IsAny<string[]>())).Returns());
36+
_mock.Verify(x => x.Execute("JSON.SET", "Person:Shachar", "$", "{\"Name\":\"Shachar\",\"Age\":23}" ));
4237
// ADD MOCK and CHECK HOW THE JSON LOOKS AFTER PARSING
43-
System.Console.WriteLine(JsonSerializer.Serialize(obj).ToString());
44-
45-
46-
4738
}
4839
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
999be52092b74e9df5e0d18c49d8e34486a62046
1+
6649711fc656c246304dd1968552e0abdf44ac2a
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)