diff --git a/BlazorSolution/MiniGames/Client/ViewModel/TicTacToe.cs b/BlazorSolution/MiniGames/Client/ViewModel/TicTacToe.cs index 5eda822..c844f89 100644 --- a/BlazorSolution/MiniGames/Client/ViewModel/TicTacToe.cs +++ b/BlazorSolution/MiniGames/Client/ViewModel/TicTacToe.cs @@ -11,7 +11,7 @@ namespace MiniGames.Client.ViewModel this.Model = model; } - public int[,] Brett + public TicTacToeBrett Brett { get { return Model.Brett; } set { Model.Brett = value; } diff --git a/BlazorSolution/MiniGames/Shared/Models/TicTacToeBrett.cs b/BlazorSolution/MiniGames/Shared/Models/TicTacToeBrett.cs new file mode 100644 index 0000000..83534e7 --- /dev/null +++ b/BlazorSolution/MiniGames/Shared/Models/TicTacToeBrett.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace MiniGames.Shared.Models +{ + public class TicTacToeBrett + { + int[,] Felder; + } +} diff --git a/BlazorSolution/MiniGames/Shared/Models/TicTacToeModel.cs b/BlazorSolution/MiniGames/Shared/Models/TicTacToeModel.cs index a8e8ad3..cc67cbf 100644 --- a/BlazorSolution/MiniGames/Shared/Models/TicTacToeModel.cs +++ b/BlazorSolution/MiniGames/Shared/Models/TicTacToeModel.cs @@ -9,6 +9,6 @@ namespace MiniGames.Shared.Models public class TicTacToeModel { public SpielerModel[] Spieler { get; set; } - public int[,] Brett { get; set; } + public TicTacToeBrett Brett { get; set; } } } diff --git a/BlazorSolution/MiniGamesTests/TicTacToeBrettTest.cs b/BlazorSolution/MiniGamesTests/TicTacToeBrettTest.cs new file mode 100644 index 0000000..2a64757 --- /dev/null +++ b/BlazorSolution/MiniGamesTests/TicTacToeBrettTest.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace MiniGamesTests +{ + public class TicTacToeBrettTest + { + + } +} diff --git a/BlazorSolution/MiniGamesTests/TicTacToeTest.cs b/BlazorSolution/MiniGamesTests/TicTacToeTest.cs index 2a6300c..aee50ed 100644 --- a/BlazorSolution/MiniGamesTests/TicTacToeTest.cs +++ b/BlazorSolution/MiniGamesTests/TicTacToeTest.cs @@ -12,14 +12,9 @@ namespace MiniGamesTests { public class TicTacToeTest { - int[,] StandardBrett() + TicTacToeBrett StandardBrett() { - return new int[,] - { - { -1, -1, -1, }, - { -1, -1, -1, }, - { -1, -1, -1, }, - }; + return new TicTacToeBrett(); } SpielerModel[] StandardSpieler() @@ -54,7 +49,7 @@ namespace MiniGamesTests { // arrange TicTacToe spiel = new(StandardModel()); - int[,] brett = spiel.Brett; + TicTacToeBrett brett = spiel.Brett; bool erwartetGesetzt = gesetzt; // act