Exemplo n.º 1
0
 public static Story Story(Project project, StoryPoint storyPoints, int hoursPerStoryPoint, Prioriteit moscowPrio, Gebruiker aangemaaktDoor)
 {
     Story story = new Story(project, aangemaaktDoor, Impact.Normaal, StoryType.UserStory);
     story.StoryPoints = storyPoints;
     story.Schatting = new TimeSpan(story.WaardeStoryPoints*hoursPerStoryPoint);
     story.ProductBacklogPrioriteit = moscowPrio;
     return story;
 }
Exemplo n.º 2
0
 public static Story Story(Project project, StoryPoint storyPoints, int hoursPerStoryPoint, Priority moscowPrio, User aangemaaktDoor)
 {
     Story story = new Story(project, aangemaaktDoor, Impact.Normal, StoryType.UserStory);
     story.StoryPoints = storyPoints;
     story.Estimation = new TimeSpan(story.StoryPointsValue*hoursPerStoryPoint);
     story.ProductBacklogPriority = moscowPrio;
     return story;
 }
        public override void SetUp()
        {
            project = new Project();
            sprint = new Sprint();
            gebruiker = new Gebruiker();
            project.VoegSprintToe(sprint);

            base.SetUp();
        }
        public override void SetUp()
        {
            project = new Project();
            sprint = new Sprint();
            gebruiker = new User();
            project.AddSprint(sprint);

            base.SetUp();
        }
Exemplo n.º 5
0
        public override void SetUp()
        {
            Random random = new Random();

            base.SetUp();

            // 4 gebruikers
            for (int i = 0; i<testCaseDevelopers.Length; i++ )
            {
                testCaseDevelopers[i] = Creation.Gebruiker(SysteemRol.Gebruiker);
            }

            // 1 project
            testCaseProject = Creation.Project();

            // 1 sprint
            testCaseSprint = Creation.Sprint(testCaseProject);
            testCaseSprint.WerkDagen = 40; // 4 devvers voor 2 weken = 4 * 2 * 5 dagen.

            foreach (Gebruiker developer in testCaseDevelopers)
            {
                testCaseSprint.VoegGebruikerToe(developer, SprintRol.Developer);
            }
            testCaseSprint.SprintGebruikers[0].VoegRolToe(SprintRol.ScrumMaster);

            // 1 story, 2 taken, beide afgesloten
            const int hoursPerStoryPoint = 2;
            Story testCaseStory1 = Creation.Story(testCaseProject, StoryPoint.Acht, hoursPerStoryPoint, Prioriteit.Must, testCaseDevelopers[random.Next(0,3)]);
            testCaseSprint.MaakSprintStoryVoor(testCaseStory1);

            Task task1_1 = Creation.Task();
            testCaseStory1.VoegTaskToe(task1_1);
            task1_1.MaakTijdRegistratie(testCaseDevelopers[random.Next(0, 3)], DateTime.Now, testCaseSprint, new TimeSpan(8,0,0));
            task1_1.SluitTaak();
            Task task1_2 = Creation.Task();
            testCaseStory1.VoegTaskToe(task1_2);
            task1_2.MaakTijdRegistratie(testCaseDevelopers[random.Next(0, 3)], DateTime.Now, testCaseSprint, new TimeSpan(12, 0, 0));
            task1_2.SluitTaak();
        }
Exemplo n.º 6
0
        public override void SetUp()
        {
            Random random = new Random();

            base.SetUp();

            // 4 gebruikers
            for (int i = 0; i<testCaseDevelopers.Length; i++ )
            {
                testCaseDevelopers[i] = Creation.Gebruiker(SystemRole.User);
            }

            // 1 project
            testCaseProject = Creation.Project();

            // 1 sprint
            testCaseSprint = Creation.Sprint(testCaseProject);
            testCaseSprint.WorkDays = 40; // 4 devvers voor 2 weken = 4 * 2 * 5 dagen.

            foreach (User developer in testCaseDevelopers)
            {
                testCaseSprint.AddUser(developer, SprintRole.Developer);
            }
            testCaseSprint.SprintUsers[0].AddRole(SprintRole.ScrumMaster);

            // 1 story, 2 taken, beide afgesloten
            const int hoursPerStoryPoint = 2;
            Story testCaseStory1 = Creation.Story(testCaseProject, StoryPoint.Eight, hoursPerStoryPoint, Priority.Must, testCaseDevelopers[random.Next(0,3)]);
            testCaseSprint.CreateSprintStoryFor(testCaseStory1);

            Task task1_1 = Creation.Task();
            testCaseStory1.AddTask(task1_1);
            task1_1.RegisterTime(testCaseDevelopers[random.Next(0, 3)], DateTime.Now, testCaseSprint, new TimeSpan(8,0,0));
            task1_1.Close();
            Task task1_2 = Creation.Task();
            testCaseStory1.AddTask(task1_2);
            task1_2.RegisterTime(testCaseDevelopers[random.Next(0, 3)], DateTime.Now, testCaseSprint, new TimeSpan(12, 0, 0));
            task1_2.Close();
        }
        private string GetProjectTypeGuids(Project proj)
        {
            string projectTypeGuids = "";
            int result = 0;

            object service = GetService(proj.DTE, typeof(Microsoft.VisualStudio.Shell.Interop.IVsSolution));
            var solution = (Microsoft.VisualStudio.Shell.Interop.IVsSolution)service;
            Microsoft.VisualStudio.Shell.Interop.IVsHierarchy hierarchy = null;

            result = solution.GetProjectOfUniqueName(proj.UniqueName, out hierarchy);

            if (result == 0)
            {
                Microsoft.VisualStudio.Shell.Interop.IVsAggregatableProject aggregatableProject = (Microsoft.VisualStudio.Shell.Interop.IVsAggregatableProject)hierarchy;
                result = aggregatableProject.GetAggregateProjectTypeGuids(out projectTypeGuids);
            }

            return projectTypeGuids;
        }
Exemplo n.º 8
0
 public static Sprint Sprint(Project project)
 {
     return new Sprint(project);
 }