Mercurial > altnet-hispano
diff Agendas/trunk/src/Agendas.Domain/Evento.cs @ 56:65bbcdd5d357
Pasando la responsabilidad de generar el Id al repositorio
author | nelopauselli |
---|---|
date | Mon, 16 May 2011 20:15:05 -0300 |
parents | 3059a5f8930f |
children | 3d9e6d56d903 |
line wrap: on
line diff
--- a/Agendas/trunk/src/Agendas.Domain/Evento.cs Mon May 16 20:10:45 2011 -0300 +++ b/Agendas/trunk/src/Agendas.Domain/Evento.cs Mon May 16 20:15:05 2011 -0300 @@ -3,21 +3,19 @@ namespace AltNetHispano.Agendas.Domain { - public class Evento + public class Evento : Identificable { private readonly IList<Track> _tracks; private IList<string> _enlaces; public Evento(string titulo) { - Id = Guid.NewGuid(); Titulo = titulo; _enlaces = new List<string>(); _tracks = new List<Track>(); } - public Guid Id { get; private set; } public string Titulo { get; private set; } public DateTime? Fecha { get; private set; } public string Sintesis { get; private set; }