예제 #1
0
 private Environment(Guid projectId, string key, string name, AggregateAudit audit)
 {
     Key       = key;
     Name      = name;
     ProjectId = projectId;
     Audit     = audit;
 }
예제 #2
0
파일: Toggle.cs 프로젝트: binarymash/evelyn
 public Toggle(Guid projectId, string key, string name, AggregateAudit audit)
 {
     Key       = key;
     Name      = name;
     ProjectId = projectId;
     Audit     = audit;
 }
예제 #3
0
 private Project(Guid id, string name, IEnumerable <Environment> environments, IEnumerable <Toggle> toggles, AggregateAudit audit)
 {
     Id            = id;
     Name          = name;
     Audit         = audit;
     _environments = environments?.ToList() ?? new List <Environment>();
     _toggles      = toggles?.ToList() ?? new List <Toggle>();
 }
예제 #4
0
 public static Project Create(EventAudit eventAudit, Guid id, string name)
 {
     return(new Project(id, name, new List <Environment>(), new List <Toggle>(), AggregateAudit.Create(eventAudit)));
 }
예제 #5
0
 public static Environment Create(EventAudit eventAudit, Guid projectId, string key, string name)
 {
     return(new Environment(projectId, key, name, AggregateAudit.Create(eventAudit)));
 }
예제 #6
0
 public static Account Create(EventAudit eventAudit, Guid accountId)
 {
     return(new Account(accountId, new List <Project>(), AggregateAudit.Create(eventAudit)));
 }
예제 #7
0
 private Account(Guid accountId, IEnumerable <Project> projects, AggregateAudit audit)
 {
     AccountId = accountId;
     Audit     = audit;
     _projects = projects?.ToList() ?? new List <Project>();
 }
예제 #8
0
파일: Toggle.cs 프로젝트: binarymash/evelyn
 public static Toggle Create(EventAudit eventAudit, Guid projectId, string key, string name)
 {
     return(new Toggle(projectId, key, name, AggregateAudit.Create(eventAudit)));
 }