55 lines
1.3 KiB
C#
55 lines
1.3 KiB
C#
using GameHandler.GameHandler;
|
|
using GameModel;
|
|
using GameModel.Contracts;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace GameHandler.UnitTests.Mocks
|
|
{
|
|
internal class FakeGameRepository : IGameRepository
|
|
{
|
|
public Task<Game> Create(Game game)
|
|
{
|
|
return Task.FromResult(Game.Create(FreeGameHandler.GAMENAME_FREETRAINING));
|
|
}
|
|
|
|
public Task<Game> Create(string gameName)
|
|
{
|
|
return Task.FromResult(Game.Create(gameName));
|
|
}
|
|
|
|
public Task Delete(IEnumerable<GameState> gameStates)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public GameState Load(Guid gameId)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public Task<Game> LoadGame(Guid gameId)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public Task<IEnumerable<GameState>> LoadStates(Guid gameId)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public Task<GameState> Save(GameState gameState)
|
|
{
|
|
return Task.FromResult(gameState);
|
|
}
|
|
|
|
public Task Update(Game game)
|
|
{
|
|
return Task.CompletedTask;
|
|
}
|
|
}
|
|
}
|