Exemplo n.º 1
0
        /// <summary>
        /// Anvender det valgte projekt i singletonnen til at hente alle sprint der ligger tilknyttet til projektet ud og sætte det ind i OC der er binded op til viewet.
        /// </summary>
        public async void LoadSprints()
        {
            List <Sprint> sp = await SprintsPer.LoadBacklog(LeSingleton.SelectedProject.Project_Id);

            if (sp != null)
            {
                foreach (Sprint sprint in sp)
                {
                    Sprints.Add(sprint);
                }
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// Generere et nyt Objec af typen sprint for at kunne sende det med til WEB API'en for at kunne generere et nyt object der bliver sendt tilbage fra api'en hvis det lykkes.
        /// </summary>
        public async void Create()
        {
            List <int> storyId = new List <int>();

            foreach (Story storey in SprintBacklog)
            {
                storyId.Add(storey.Story_Id);
            }

            Sprint sp = await SprintsPer.Create(new Sprint()
            {
                Story_Ids = storyId, Sprint_Goal = Sprint_GoalVM, Sprint_Start = TimeConverter.ConverterToDateTime(Sprint_StartDate, Sprint_StartTime), Sprint_End = TimeConverter.ConverterToDateTime(Sprint_EndDate, Sprint_EndTime)
            }, LeSingleton.SelectedProject.Project_Id);

            if (sp != null)
            {
                Sprints.Add(sp);
            }

            SprintReset();
        }
Exemplo n.º 3
0
        public async void Load()
        {
            List <Sprint> spr = await SprintsPer.LoadBacklog(LeSingleton.SelectedProject.Project_Id);

            if (spr != null)
            {
                foreach (Sprint sprint in spr)
                {
                    Sprints.Add(sprint);
                }
            }

            List <Story> st = await StoryPer.LoadBacklog(LeSingleton.SelectedProject.Project_Id);

            if (st != null)
            {
                foreach (Story storey in st)
                {
                    Stories.Add(storey);
                }
            }
        }
Exemplo n.º 4
0
        public static void Init()
        {
            Specialties.Add(new Speciality
            {
                FacultyId = 123,
                Id        = 2,
                LectorId  = 321,
                Name      = "Telecommunications",
                ShortName = "TIS"
            });
            Users.Add(new User
            {
                Id         = 1,
                FacultylID = 123,
                Name       = "Boris",
                Email      = "*****@*****.**",
                TeamID     = 12
            });

            Users.Add(new User
            {
                Id         = 2,
                FacultylID = 456,
                Name       = "Stefan",
                Email      = "*****@*****.**",
                TeamID     = 12
            });

            //Initi Story
            Stories.Add(new Story
            {
                Id          = 55,
                Name        = "Controlers Story",
                Description = "Create all required controlers",
                EndDate     = new DateTime(2020, 12, 23),
                ProjectId   = 2,
                StartDate   = DateTime.Now
            });

            //Inti faculties

            Faculties.Add(new Faculty()
            {
                Id          = 1,
                Name        = "Physico-technological faculty",
                Description = "We are the best",
                ShortName   = "PTF"
            });

            //Init Teams
            Teams.Add(new Team
            {
                Id          = 43,
                Name        = "Team A",
                FacultyID   = 1,
                DateCreated = new DateTime(2019, 10, 01)
            });

            Teams.Add(new Team
            {
                Id          = 44,
                Name        = "Team B",
                FacultyID   = 1,
                DateCreated = new DateTime(2019, 10, 01)
            });

            //Init User Taks
            UserTasks.Add(new UserTask
            {
                Id = 23,
                AssignedToUserID = 2,
                Description      = "Task Description",
                EndDate          = new DateTime(2020, 11, 23),
                Name             = "Create Controlers",
                OwnerId          = 1,
                StartDate        = DateTime.Now,
                StoryId          = 55
            });

            Sprints.Add(new Sprint
            {
                Description = "Description",
                EndDate     = DateTime.Now.AddDays(5),
                Id          = 133,
                Name        = "Sprint name",
                StartDate   = DateTime.Now,
                TeamID      = 1
            });
            Lectors.Add(new Lector
            {
                Id          = 24,
                FirstName   = "Vladimir",
                LastName    = "Sovniov",
                DateStarted = new DateTime(2018, 10, 12)
            });

            Projects.Add(new Project
            {
                Description = "Project description",
                Id          = 4322,
                Name        = "Some project name",
                OwnerId     = 2
            });

            //User positions
            UserPositions.Add(new UserPosition
            {
                Id           = 1,
                PositionName = "Junior Developer",
                Description  = "Begginer C# developer"
            });
            UserPositions.Add(new UserPosition
            {
                Id           = 2,
                PositionName = "Middle Developer",
                Description  = "Experienced C# developer"
            });
            UserPositions.Add(new UserPosition
            {
                Id           = 3,
                PositionName = "Senior Developer",
                Description  = "Very experienced C# developer"
            });
        }