protected override void When() { base.When(); _NewProject = new Project {Name = "New Project"}; _NewProject.AddArea(new Area {Name = "Area 1"}); _NewProject.AddArea(new Area {Name = "Area 2"}); _Repository.Save(_NewProject); }
protected override void When() { base.When(); _NewProject = new Project {Name = "New Project"}; var area = new Area {Name = "Area 1"}; area.AddTask(new Task {Name = "Task 1"}); _NewProject.AddArea(area); _Repository.Save(_NewProject); }