public FinishDayResult Execute(GameId gameId) { Initialize(gameId); Game.Calculate(); return new FinishDayResult( Game.CurrentDay.Event.Name, Game.CurrentDay.Event.ResultMessage, Game.CurrentDay.Results ); }
public FinishDayResult Execute(GameId gameId) { Initialize(gameId); Game.Calculate(); return(new FinishDayResult( Game.CurrentDay.Event.Name, Game.CurrentDay.Event.ResultMessage, Game.CurrentDay.Results )); }
public NextDayResult Execute(GameId gameId) { Initialize(gameId); Game.AddDay(); return new NextDayResult(Game.CurrentDay); }
protected void Initialize(GameId gameId) { Game = Repository.Get(g => g.Id == gameId.Id); }
public NextDayResult Execute(GameId gameId) { Initialize(gameId); Game.AddDay(); return(new NextDayResult(Game.CurrentDay)); }