Inheritance: ModelBase
 public override void SetUp()
 {
     base.SetUp();
     ProjectRepositoryHelper<Project>.ConfigureerProjectRepository();
     ProjectRepository = IoC.Resolve<IProjectRepository>();
     project = new Project("ProjectNaam", "ProjectOmschrijving");
 }
Exemplo n.º 2
0
        public override void SetUp()
        {
            project = new Project();
            sprint = new Sprint();

            base.SetUp();
        }
Exemplo n.º 3
0
        /// <summary>
        /// Ctor met Project
        /// </summary>
        /// <param name="project"></param>
        public Sprint(Project project)
        {
            if (project == null)
                throw new ArgumentNullException("project");

            project.VoegSprintToe(this);
        }
Exemplo n.º 4
0
        public override void SetUp()
        {
            project = new Project();
            story = new Story(new Project(), new User(), null, StoryType.UserStory);
            story2 = new Story(new Project(), new User(), null, StoryType.UserStory);

            base.SetUp();
        }
Exemplo n.º 5
0
        public override void SetUp()
        {
            project = new Project();
            sprint = new Sprint();
            project.VoegSprintToe(sprint);
            story = new Story(project, new Gebruiker(), null, StoryType.UserStory);
            task = new Task();
            task2 = new Task();

            base.SetUp();
        }
        public override void SetUp()
        {
            project = new Project();
            sprint = new Sprint();
            project.AddSprint(sprint);
            story = new Story(project, new User(), null, StoryType.UserStory);
            story2 = new Story(project, new User(), null, StoryType.UserStory);
            sprintStory = new SprintStory();
            task = new Task(story);
            task2 = new Task(story2);

            base.SetUp();
        }
        public override void SetUp()
        {
            project = new Project();

            task = new Task();
            gebruiker = new User();
            sprint = new Sprint();
            project.AddSprint(sprint);
            tijd = new TimeSpan(1, 30, 00); //1,5 uur

            story = new Story(project, gebruiker, null, StoryType.UserStory);
            story.AddTask(task);

            base.SetUp();
        }
Exemplo n.º 8
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Story"/> class.
        /// </summary>
        /// <param name="project">The project.</param>  
        /// <param name="aangemaaktDoor">The aangemaakt door.</param>
        /// <param name="impact">The impact.</param>
        /// <param name="storyType">Type of the story.</param>
        public Story(Project project, Gebruiker aangemaaktDoor, Impact? impact, StoryType storyType)
        {
            if (project == null)
            {
                throw new ArgumentNullException("project", "Het project mag niet null zijn.");
            }

            if (aangemaaktDoor == null)
            {
                throw new ArgumentNullException("aangemaaktDoor", "De gebruiker die deze story aanmaakt kan niet null zijn.");
            }

            project.VoegStoryToe(this);
            this.aangemaaktDoor = aangemaaktDoor;
            this.impact = impact;
            this.storyType = storyType;
        }
Exemplo n.º 9
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Story"/> class.
        /// </summary>
        /// <param name="project">The project.</param>  
        /// <param name="createdBy">The user that created this story.</param>
        /// <param name="impact">The impact.</param>
        /// <param name="storyType">Type of the story.</param>
        public Story(Project project, User createdBy, Impact? impact, StoryType storyType)
        {
            if (project == null)
            {
                throw new ArgumentNullException("project", "Project can't be null.");
            }

            if (createdBy == null)
            {
                throw new ArgumentNullException("createdBy", "The user creating this story can't be null.");
            }

            project.AddStory(this);
            this.createdBy = createdBy;
            this.impact = impact;
            this.storyType = storyType;
        }
Exemplo n.º 10
0
 public static Sprint Sprint(Project project)
 {
     return Persist(new Sprint(project));
 }
Exemplo n.º 11
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ProjectShortList"/> class.
 /// </summary>
 /// <param name="user">The user.</param>
 /// <param name="project">The project.</param>
 public ProjectShortList(User user, Project project)
 {
     this.user = user;
     this.project = project;
 }
Exemplo n.º 12
0
 private static Project Persist(Project project)
 {
     return projectRepository.Save(project);
 }
Exemplo n.º 13
0
        /// <summary>
        /// Voeg een project toe aan de ShortlistProjecten
        /// </summary>
        /// <param name="shortListProject"></param>
        public void ShortListProjectToevoegen(Project project)
        {
            foreach (ProjectShortList shortList in ProjectShortList)
            {
                if(shortList.Project.Equals(project))
                    return;
            }

            projectShortList.Add(new ProjectShortList(this,project));
        }
Exemplo n.º 14
0
 /// <summary>
 /// Constructor
 /// </summary>
 public ProjectShortList(Gebruiker gebruiker, Project project)
 {
     this.gebruiker = gebruiker;
     this.project = project;
 }