Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kzu committed Aug 1, 2023
1 parent 06640ab commit 1d3f9dd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Tests/Account.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System;
using System.Threading.Tasks;
using Devlooped.CloudActors;
using Moq;
using Xunit.Abstractions;

namespace Tests;
Expand All @@ -20,7 +21,7 @@ public void Apply()
[Fact]
public async Task Execute()
{
IActorBus bus = null!;
IActorBus bus = Mock.Of<IActorBus>();

await bus.ExecuteAsync("asdf", new Deposit(100));

Expand Down
1 change: 1 addition & 0 deletions src/Tests/Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.6.0" />
<PackageReference Include="Moq" Version="4.18.4" />
<PackageReference Include="xunit" Version="2.4.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5" />
<PackageReference Include="coverlet.collector" Version="6.0.0" />
Expand Down

0 comments on commit 1d3f9dd

Please sign in to comment.