Skip to content

Commit

Permalink
Merge pull request #97 from seniorquico/RecordExists
Browse files Browse the repository at this point in the history
Add RecordExists to TestStorage
  • Loading branch information
seniorquico authored Sep 10, 2020
2 parents 9a8d423 + 93c9c8e commit 43ec44c
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 12 deletions.
2 changes: 1 addition & 1 deletion OrleansTestKit.sln
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.29806.167
VisualStudioVersion = 16.0.30503.244
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{54C04CF7-7044-46E0-BC24-2A992F028557}"
EndProject
Expand Down
4 changes: 2 additions & 2 deletions src/OrleansTestKit/OrleansTestKit.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<PackageTags>Orleans Cloud-Computing Actor-Model Actors Distributed-Systems C# .NET Test Testing</PackageTags>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<Version>3.1.2</Version>
<Version>3.1.3</Version>
</PropertyGroup>

<PropertyGroup>
Expand All @@ -27,7 +27,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="3.0.0">
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="3.3.0">
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
Expand Down
6 changes: 4 additions & 2 deletions src/OrleansTestKit/Storage/TestStorage.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
using System;
using System;
using System.Threading.Tasks;
using Orleans.Core;

namespace Orleans.TestKit.Storage
{
internal sealed class TestStorage<TState> :
internal class TestStorage<TState> :
IStorageStats,
IStorage<TState>
{
Expand All @@ -14,6 +14,8 @@ internal sealed class TestStorage<TState> :

public string Etag => throw new System.NotImplementedException();

public virtual bool RecordExists => throw new NotImplementedException();

public TestStorage()
{
Stats = new TestStorageStats() {Reads = -1};
Expand Down
4 changes: 2 additions & 2 deletions src/OrleansTestKit/Streams/TestStreamProvider.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Orleans.Streams;
Expand All @@ -17,7 +17,7 @@ public TestStreamProvider(TestKitOptions options) =>

public string Name { get; private set; }

public bool IsRewindable { get; } = false;
public bool IsRewindable { get; }

public IAsyncStream<T> GetStream<T>(Guid streamId, string streamNamespace)
{
Expand Down
11 changes: 6 additions & 5 deletions test/OrleansTestKit.Tests/OrleansTestKit.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,16 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="coverlet.msbuild" Version="2.8.0">
<PackageReference Include="coverlet.msbuild" Version="2.9.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
<PackageReference Include="FluentAssertions" Version="5.10.2" />
<PackageReference Include="Microsoft.CodeCoverage" Version="16.5.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.5.0" />
<PackageReference Include="FluentAssertions" Version="5.10.3" />
<PackageReference Include="Microsoft.CodeCoverage" Version="16.7.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.7.1" />
<PackageReference Include="Microsoft.Orleans.OrleansRuntime" Version="3.3.0" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1">
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
Expand Down
2 changes: 2 additions & 0 deletions test/OrleansTestKit.Tests/Tests/StorageTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,8 @@ public class CustomStorage<TState> :

public string Etag => throw new System.NotImplementedException();

public virtual bool RecordExists => throw new NotImplementedException();

public CustomStorage()
{
Stats = new TestStorageStats() { Reads = -1 };
Expand Down

0 comments on commit 43ec44c

Please sign in to comment.