Mercurial > altnet-hispano
comparison Agendas/trunk/src/Agendas.Domain/Ponente.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 | cb3f7b47c1f0 |
comparison
equal
deleted
inserted
replaced
55:39f5258ebdcf | 56:65bbcdd5d357 |
---|---|
1 using System; | 1 namespace AltNetHispano.Agendas.Domain |
2 | |
3 namespace AltNetHispano.Agendas.Domain | |
4 { | 2 { |
5 public class Ponente | 3 public class Ponente : Identificable |
6 { | 4 { |
7 public Ponente(string nombre, string mail, string twitter, string blog) | 5 public Ponente(string nombre, string mail, string twitter, string blog) |
8 : this(nombre) | 6 : this(nombre) |
9 { | 7 { |
10 Mail = mail; | 8 Mail = mail; |
12 Blog = blog; | 10 Blog = blog; |
13 } | 11 } |
14 | 12 |
15 public Ponente(string nombre) | 13 public Ponente(string nombre) |
16 { | 14 { |
17 Id = Guid.NewGuid(); | |
18 Nombre = nombre; | 15 Nombre = nombre; |
19 } | 16 } |
20 | |
21 public Guid Id { get; private set; } | |
22 | 17 |
23 public string Nombre { get; private set; } | 18 public string Nombre { get; private set; } |
24 | 19 |
25 public string Mail { get; private set; } | 20 public string Mail { get; private set; } |
26 | 21 |