annotate Agendas/trunk/src/Agendas.Domain/Track.cs @ 74:bc46e7426c80

Refactoring de acciones según la definición del diagrama de estados en assembla (https://www.assembla.com/spaces/altnet-hispano/wiki/Estados_de_un_evento)
author nelopauselli
date Mon, 23 May 2011 20:13:37 -0300
parents c7264bfc4b71
children c2d98fd6593f
rev   line source
57
3d9e6d56d903 Refactoring del track de cambios de un evento
nelopauselli
parents:
diff changeset
1 namespace AltNetHispano.Agendas.Domain
3d9e6d56d903 Refactoring del track de cambios de un evento
nelopauselli
parents:
diff changeset
2 {
3d9e6d56d903 Refactoring del track de cambios de un evento
nelopauselli
parents:
diff changeset
3 public class Track
3d9e6d56d903 Refactoring del track de cambios de un evento
nelopauselli
parents:
diff changeset
4 {
63
963b71ea6028 Repositorios con NH
nelopauselli
parents: 58
diff changeset
5 protected Track()
963b71ea6028 Repositorios con NH
nelopauselli
parents: 58
diff changeset
6 {
963b71ea6028 Repositorios con NH
nelopauselli
parents: 58
diff changeset
7 //ctor para NHibernate
963b71ea6028 Repositorios con NH
nelopauselli
parents: 58
diff changeset
8 }
963b71ea6028 Repositorios con NH
nelopauselli
parents: 58
diff changeset
9
58
37d99d239cae Cambiando constantes por enum en el track de cambios en Evento
nelopauselli
parents: 57
diff changeset
10 public Track(Accion accion)
57
3d9e6d56d903 Refactoring del track de cambios de un evento
nelopauselli
parents:
diff changeset
11 {
3d9e6d56d903 Refactoring del track de cambios de un evento
nelopauselli
parents:
diff changeset
12 Usuario = IdentityContext.GetUserName();
3d9e6d56d903 Refactoring del track de cambios de un evento
nelopauselli
parents:
diff changeset
13 Accion = accion;
3d9e6d56d903 Refactoring del track de cambios de un evento
nelopauselli
parents:
diff changeset
14 }
3d9e6d56d903 Refactoring del track de cambios de un evento
nelopauselli
parents:
diff changeset
15
63
963b71ea6028 Repositorios con NH
nelopauselli
parents: 58
diff changeset
16 public virtual Accion Accion { get; private set; }
70
c7264bfc4b71 agregado de properties en clase Evento (UrlInvitacion, UrlWiki, NumeroOrden)
jorge.rowies
parents: 63
diff changeset
17 public virtual string Usuario { get; private set; }
57
3d9e6d56d903 Refactoring del track de cambios de un evento
nelopauselli
parents:
diff changeset
18 }
3d9e6d56d903 Refactoring del track de cambios de un evento
nelopauselli
parents:
diff changeset
19
58
37d99d239cae Cambiando constantes por enum en el track de cambios en Evento
nelopauselli
parents: 57
diff changeset
20 public enum Accion
57
3d9e6d56d903 Refactoring del track de cambios de un evento
nelopauselli
parents:
diff changeset
21 {
58
37d99d239cae Cambiando constantes por enum en el track de cambios en Evento
nelopauselli
parents: 57
diff changeset
22 Proponer = 1,
74
bc46e7426c80 Refactoring de acciones según la definición del diagrama de estados en assembla
nelopauselli
parents: 70
diff changeset
23 Agendar = 2,
58
37d99d239cae Cambiando constantes por enum en el track de cambios en Evento
nelopauselli
parents: 57
diff changeset
24 Modificar = 3,
37d99d239cae Cambiando constantes por enum en el track de cambios en Evento
nelopauselli
parents: 57
diff changeset
25 CambiarTitulo = 4,
74
bc46e7426c80 Refactoring de acciones según la definición del diagrama de estados en assembla
nelopauselli
parents: 70
diff changeset
26 Publicar = 5
57
3d9e6d56d903 Refactoring del track de cambios de un evento
nelopauselli
parents:
diff changeset
27 }
3d9e6d56d903 Refactoring del track de cambios de un evento
nelopauselli
parents:
diff changeset
28
3d9e6d56d903 Refactoring del track de cambios de un evento
nelopauselli
parents:
diff changeset
29 }