Example #1
0
 public Campaign(int ano, string descricao, int qtdeCriancas)
 {
     Id           = Guid.NewGuid();
     Year         = ano;
     Description  = descricao;
     ChildrensQty = qtdeCriancas;
     State        = new NotStarted();
 }
Example #2
0
 public Campaign(Guid id, int ano, string descricao, int qtdeCriancas, ICampaignState state)
 {
     Id           = id;
     Year         = ano;
     Description  = descricao;
     ChildrensQty = qtdeCriancas;
     State        = state;
 }
Example #3
0
 public Campaign(int ano, string descricao)
 {
     Id           = Guid.NewGuid();
     Year         = ano;
     Description  = descricao;
     ChildrensQty = 0;
     State        = new NotStarted();
 }
 public CampaignContext(ICampaignState state)
 {
     this.State = state;
 }