Skip to content

Commit 4d32f97

Browse files
committed
Removed options and dialog service mock
1 parent c56cce7 commit 4d32f97

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

src/Codebreaker.ViewModels.Tests/GamePageViewModelTests.cs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,11 @@ public GamePageViewModelTests()
1717
});
1818

1919
Mock<IGamesClient> gameClient = new();
20-
gameClient.Setup(
21-
client => client.StartGameAsync(GameType.Game6x4, "Test", CancellationToken.None)).ReturnsAsync(returnValue);
20+
gameClient.Setup(client => client.StartGameAsync(GameType.Game6x4, "Test", CancellationToken.None)).ReturnsAsync(returnValue);
2221

23-
Mock<IOptions<GamePageViewModelOptions>> options = new();
24-
options.Setup(o => o.Value).Returns(new GamePageViewModelOptions());
25-
26-
Mock<IDialogService> dialogService = new();
2722
Mock<IInfoBarService> infoBarService = new();
2823

29-
_viewModel = new GamePageViewModel(gameClient.Object, options.Object, dialogService.Object, infoBarService.Object);
24+
_viewModel = new GamePageViewModel(gameClient.Object, infoBarService.Object);
3025
}
3126

3227
[Fact]

0 commit comments

Comments
 (0)