34 lines
706 B
C#
34 lines
706 B
C#
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());
|
|
}
|
|
|
|
public GameState Load(Guid gameId)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public Task Save(GameState gameState)
|
|
{
|
|
return Task.CompletedTask;
|
|
}
|
|
|
|
public Task Update(Game game)
|
|
{
|
|
return Task.CompletedTask;
|
|
}
|
|
}
|
|
}
|