Skip to content

Commit e21095d

Browse files
Merge pull request #78 from CodebreakerApp/77-viewmodel-tests-to-not-build
Fixed VM test
2 parents 82b8490 + 38095cf commit e21095d

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/Codebreaker.ViewModels.Tests/GamePageViewModelTests.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11

22

3+
using Codebreaker.ViewModels.Contracts.Services;
4+
35
namespace CodeBreaker.ViewModels.Tests;
46

57
public class GamePageViewModelTests
@@ -19,11 +21,12 @@ public GamePageViewModelTests()
1921
client => client.StartGameAsync(GameType.Game6x4, "Test", CancellationToken.None)).ReturnsAsync(returnValue);
2022

2123
Mock<IOptions<GamePageViewModelOptions>> options = new();
22-
options.Setup(o => o.Value).Returns(new GamePageViewModelOptions() { EnableDialogs = false });
24+
options.Setup(o => o.Value).Returns(new GamePageViewModelOptions());
2325

2426
Mock<IDialogService> dialogService = new();
27+
Mock<IInfoBarService> infoBarService = new();
2528

26-
_viewModel = new GamePageViewModel(gameClient.Object, options.Object, dialogService.Object);
29+
_viewModel = new GamePageViewModel(gameClient.Object, options.Object, dialogService.Object, infoBarService.Object);
2730
}
2831

2932
[Fact]

0 commit comments

Comments
 (0)