Ejemplo n.º 1
0
 public FinishDayResult Execute(GameId gameId)
 {
     Initialize(gameId);
     Game.Calculate();
     return new FinishDayResult(
         Game.CurrentDay.Event.Name,
         Game.CurrentDay.Event.ResultMessage,
         Game.CurrentDay.Results
         );
 }
Ejemplo n.º 2
0
 public FinishDayResult Execute(GameId gameId)
 {
     Initialize(gameId);
     Game.Calculate();
     return(new FinishDayResult(
                Game.CurrentDay.Event.Name,
                Game.CurrentDay.Event.ResultMessage,
                Game.CurrentDay.Results
                ));
 }
Ejemplo n.º 3
0
 public NextDayResult Execute(GameId gameId)
 {
     Initialize(gameId);
     Game.AddDay();
     return new NextDayResult(Game.CurrentDay);
 }
Ejemplo n.º 4
0
 protected void Initialize(GameId gameId)
 {
     Game = Repository.Get(g => g.Id == gameId.Id);
 }
Ejemplo n.º 5
0
 public NextDayResult Execute(GameId gameId)
 {
     Initialize(gameId);
     Game.AddDay();
     return(new NextDayResult(Game.CurrentDay));
 }