private Environment(Guid projectId, string key, string name, AggregateAudit audit) { Key = key; Name = name; ProjectId = projectId; Audit = audit; }
public Toggle(Guid projectId, string key, string name, AggregateAudit audit) { Key = key; Name = name; ProjectId = projectId; Audit = audit; }
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>(); }
public static Project Create(EventAudit eventAudit, Guid id, string name) { return(new Project(id, name, new List <Environment>(), new List <Toggle>(), AggregateAudit.Create(eventAudit))); }
public static Environment Create(EventAudit eventAudit, Guid projectId, string key, string name) { return(new Environment(projectId, key, name, AggregateAudit.Create(eventAudit))); }
public static Account Create(EventAudit eventAudit, Guid accountId) { return(new Account(accountId, new List <Project>(), AggregateAudit.Create(eventAudit))); }
private Account(Guid accountId, IEnumerable <Project> projects, AggregateAudit audit) { AccountId = accountId; Audit = audit; _projects = projects?.ToList() ?? new List <Project>(); }
public static Toggle Create(EventAudit eventAudit, Guid projectId, string key, string name) { return(new Toggle(projectId, key, name, AggregateAudit.Create(eventAudit))); }