From bd36360e267db1657521dc4eb813c9d3c322d80d Mon Sep 17 00:00:00 2001 From: Felix Detig Date: Thu, 10 Feb 2022 22:19:54 +0100 Subject: [PATCH] "Karte" in "Brett" umbenannt --- BlazorSolution/MiniGames/Client/ViewModel/TicTacToe.cs | 6 ++++++ BlazorSolution/MiniGames/Shared/Models/TicTacToeModel.cs | 2 +- BlazorSolution/MiniGamesTests/TicTacToeTest.cs | 6 ++++-- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/BlazorSolution/MiniGames/Client/ViewModel/TicTacToe.cs b/BlazorSolution/MiniGames/Client/ViewModel/TicTacToe.cs index 2de9f08..5eda822 100644 --- a/BlazorSolution/MiniGames/Client/ViewModel/TicTacToe.cs +++ b/BlazorSolution/MiniGames/Client/ViewModel/TicTacToe.cs @@ -11,6 +11,12 @@ namespace MiniGames.Client.ViewModel this.Model = model; } + public int[,] Brett + { + get { return Model.Brett; } + set { Model.Brett = value; } + } + public bool SpielerInput(int spielerIndex, int posIndex) { return true; diff --git a/BlazorSolution/MiniGames/Shared/Models/TicTacToeModel.cs b/BlazorSolution/MiniGames/Shared/Models/TicTacToeModel.cs index 90b4e27..a8e8ad3 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[,] Karte { get; set; } + public int[,] Brett { get; set; } } } diff --git a/BlazorSolution/MiniGamesTests/TicTacToeTest.cs b/BlazorSolution/MiniGamesTests/TicTacToeTest.cs index 8d4a7e5..2a6300c 100644 --- a/BlazorSolution/MiniGamesTests/TicTacToeTest.cs +++ b/BlazorSolution/MiniGamesTests/TicTacToeTest.cs @@ -12,7 +12,7 @@ namespace MiniGamesTests { public class TicTacToeTest { - int[,] StandardKarte() + int[,] StandardBrett() { return new int[,] { @@ -44,7 +44,7 @@ namespace MiniGamesTests return new TicTacToeModel { Spieler = StandardSpieler(), - Karte = StandardKarte(), + Brett = StandardBrett(), }; } @@ -54,6 +54,7 @@ namespace MiniGamesTests { // arrange TicTacToe spiel = new(StandardModel()); + int[,] brett = spiel.Brett; bool erwartetGesetzt = gesetzt; // act @@ -61,6 +62,7 @@ namespace MiniGamesTests // assert Assert.Equal(erwartetGesetzt, erhaltenGesetzt); + } } }