public static Character ForPlayer(Guid playerId) { Guard.With <ArgumentException>().Against(playerId.Equals(Guid.Empty), nameof(playerId)); return(new Character(PlayerId.FromUiD(playerId)) { State = new Draft() }); }
public IEnumerable <Model.Character.Character> GetByPlayerId(Guid playerId) => Session.QueryOver <Model.Character.Character>().Where(c => c.PlayerId == PlayerId.FromUiD(playerId)).Future();