Mercurial > altnet-hispano
comparison 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 |
comparison
equal
deleted
inserted
replaced
55:39f5258ebdcf | 56:65bbcdd5d357 |
---|---|
1 using System; | 1 using System; |
2 using System.Collections.Generic; | 2 using System.Collections.Generic; |
3 | 3 |
4 namespace AltNetHispano.Agendas.Domain | 4 namespace AltNetHispano.Agendas.Domain |
5 { | 5 { |
6 public class Evento | 6 public class Evento : Identificable |
7 { | 7 { |
8 private readonly IList<Track> _tracks; | 8 private readonly IList<Track> _tracks; |
9 private IList<string> _enlaces; | 9 private IList<string> _enlaces; |
10 | 10 |
11 public Evento(string titulo) | 11 public Evento(string titulo) |
12 { | 12 { |
13 Id = Guid.NewGuid(); | |
14 Titulo = titulo; | 13 Titulo = titulo; |
15 | 14 |
16 _enlaces = new List<string>(); | 15 _enlaces = new List<string>(); |
17 _tracks = new List<Track>(); | 16 _tracks = new List<Track>(); |
18 } | 17 } |
19 | 18 |
20 public Guid Id { get; private set; } | |
21 public string Titulo { get; private set; } | 19 public string Titulo { get; private set; } |
22 public DateTime? Fecha { get; private set; } | 20 public DateTime? Fecha { get; private set; } |
23 public string Sintesis { get; private set; } | 21 public string Sintesis { get; private set; } |
24 public Ponente Ponente { get; private set; } | 22 public Ponente Ponente { get; private set; } |
25 protected string Usuario { get; private set; } | 23 protected string Usuario { get; private set; } |