internal ProductionShift(Production production, ProductionTeam team, DateTime date) { if (production == null) throw new ArgumentNullException("production"); if (team == null) throw new ArgumentNullException("team"); this.productionLegList = new List<ProductionLeg>(); this.production = production; this.team = team; this.date = date.Date; }
public virtual ProductionShift AddProductionShift(ProductionTeam team, DateTime date) { foreach (ProductionShift shift in shiftList) { if (shift.Date.Equals(date.Date) && shift.Team.Equals(team)) return shift; } ProductionShift result = new ProductionShift(this, team, date); shiftList.Add(result); return result; }