Skip to content

Commit bbb5d5e

Browse files
fix GamePageViewModel and tests
1 parent 0764e4f commit bbb5d5e

3 files changed

Lines changed: 8 additions & 5 deletions

File tree

src/clients/xaml/CodeBreaker.ViewModels.Tests/GamePageViewModelTests.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1+
2+
13
namespace CodeBreaker.ViewModels.Tests;
24

35
public class GamePageViewModelTests
46
{
5-
private readonly ColorGamePageViewModel _viewModel;
7+
private readonly GamePageViewModel _viewModel;
68

79
public GamePageViewModelTests()
810
{
@@ -21,7 +23,7 @@ public GamePageViewModelTests()
2123

2224
Mock<IDialogService> dialogService = new();
2325

24-
_viewModel = new ColorGamePageViewModel(gameClient.Object, options.Object, dialogService.Object);
26+
_viewModel = new GamePageViewModel(gameClient.Object, options.Object, dialogService.Object);
2527
}
2628

2729
[Fact]

src/clients/xaml/CodeBreaker.ViewModels.Tests/Usings.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
global using Codebreaker.GameAPIs.Client;
22
global using Codebreaker.GameAPIs.Client.Models;
33

4-
global using CodeBreaker.ViewModels.Services;
4+
global using Codebreaker.ViewModels;
5+
global using Codebreaker.ViewModels.Services;
56

67
global using Microsoft.Extensions.Options;
78

src/clients/xaml/CodeBreaker.ViewModels/Pages/GamePageViewModel.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@ public class GamePageViewModelOptions
2222
public bool EnableDialogs { get; set; } = false;
2323
}
2424

25-
public partial class ColorGamePageViewModel : ObservableObject
25+
public partial class GamePageViewModel : ObservableObject
2626
{
2727
private readonly IGamesClient _client;
2828
private int _moveNumber = 0;
2929

3030
private readonly bool _enableDialogs = false;
3131
private readonly IDialogService _dialogService;
3232

33-
public ColorGamePageViewModel(
33+
public GamePageViewModel(
3434
IGamesClient client,
3535
IOptions<GamePageViewModelOptions> options,
3636
IDialogService dialogService)

0 commit comments

Comments
 (0)