当前位置: 首页>>代码示例>>C#>>正文


C# WindowsFormsApplication13.DataManager类代码示例

本文整理汇总了C#中WindowsFormsApplication13.DataManager的典型用法代码示例。如果您正苦于以下问题:C# DataManager类的具体用法?C# DataManager怎么用?C# DataManager使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


DataManager类属于WindowsFormsApplication13命名空间,在下文中一共展示了DataManager类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: get_all_remain_hoursTest

 public void get_all_remain_hoursTest()
 {
     DataManager target = new DataManager(); // TODO: Initialize to an appropriate value
     int expected = 0; // TODO: Initialize to an appropriate value
     int actual;
     actual = target.GetAllSprintRemainHours();
     Assert.AreEqual(expected, actual);
     Assert.Inconclusive("Verify the correctness of this test method.");
 }
开发者ID:dmitrymov,项目名称:SE_Project,代码行数:9,代码来源:DataManagerTest.cs

示例2: add_programmer_expected_work_hoursTest

 public void add_programmer_expected_work_hoursTest()
 {
     DataManager target = new DataManager(); // TODO: Initialize to an appropriate value
     int expected = 0;
     int actual;
     actual = target.add_programmer_expected_work_hours(6,4);
     Assert.AreEqual(expected, actual);
     //Assert.Inconclusive("Verify the correctness of this test method.");
 }
开发者ID:AntonLitovka,项目名称:Backlog,代码行数:9,代码来源:DataManagerTest.cs

示例3: DateGetDayStatusTest

 public void DateGetDayStatusTest()
 {
     DataManager target = new DataManager(); // TODO: Initialize to an appropriate value
     int expected = 1; // TODO: Initialize to an appropriate value
     int actual;
     DateTime day = DateTime.Parse("20.01.2013");
     actual = target.DateGetDayStatus(day);
     Assert.AreEqual(expected, actual);
     //Assert.Inconclusive("Verify the correctness of this test method.");
 }
开发者ID:AntonLitovka,项目名称:Backlog,代码行数:10,代码来源:DataManagerTest.cs

示例4: Dateadd_new_dayTest

 public void Dateadd_new_dayTest()
 {
     DataManager target = new DataManager(); // TODO: Initialize to an appropriate value
     DateTime day = DateTime.Today;
     int status = 1;
     int expected = 0; // TODO: Initialize to an appropriate value
     int actual;
     actual = target.DateAddNewDay(day, status);
     Assert.AreEqual(expected, actual);
     //Assert.Inconclusive("Verify the correctness of this test method.");
 }
开发者ID:AntonLitovka,项目名称:Backlog,代码行数:11,代码来源:DataManagerTest.cs

示例5: get_all_sprint_daysTest

 public void get_all_sprint_daysTest()
 {
     DataManager target = new DataManager(); // TODO: Initialize to an appropriate value
     DateTime[] expected = new DateTime[4]; // TODO: Initialize to an appropriate value
     expected[0] = DateTime.Parse("01.12.2012");
     expected[1] = DateTime.Parse("02.12.2012");
     expected[2] = DateTime.Parse("03.12.2012");
     expected[3] = DateTime.Parse("20.01.2013");
     DateTime[] actual;
     actual = target.GetAllSprintDays();
     CollectionAssert.AreEqual(expected, actual);
        // Assert.Inconclusive("Verify the correctness of this test method.");
 }
开发者ID:dmitrymov,项目名称:SE_Project,代码行数:13,代码来源:DataManagerTest.cs

示例6: ProgrammerToDB

        private void ProgrammerToDB()
        {
            if (!IfProgrammerGreedChanged())
                return;

            DataManager dm = new DataManager();
            MathManager mm = new MathManager();
            int col = 3;
            int rows = programmerDataGridView.Rows.Count;
            string[] read = new string[col];
            for (int i = 0; i < rows - 1; i++)
            {
                for (int j = 0; j < col; j++)
                {
                    read[j] = programmerDataGridView.Rows[i].Cells[j + 1].Value.ToString();
                }
                /*for (int j = 0; j < col; j++)
                {
                    if (j == 2)
                        continue; // description might be null
                    if (read[j] == null)
                        return;
                }*/
                int programmer_ID = Convert.ToInt32(programmerDataGridView.Rows[i].Cells[0].Value.ToString());
                if (mm.isProgrammer_Id_Exist(programmer_ID) >= 0)
                { // task already exist, therefore we need only to update
                    if (mm.isProgrammerNameValid(read[0]) == true)
                    {
                        dm.ProgrammerUpdateProgrammerName(programmer_ID, read[0]);
                    }
                    else
                    {
                        MessageBox.Show("Invalid programmer name at line:" + (i + 1));
                        return;
                    }

                    dm.ProgrammerUpdateProgrammerExpectedWorkHours(programmer_ID,Convert.ToDouble(read[1]));
                    dm.ProgrammerUpdateProgrammerCurrentWorkHours(programmer_ID, Convert.ToDouble(read[2]));
                }
                else
                {
                    int ans = dm.ProgrammerAddNewProgrammer(read[0], Convert.ToInt32(read[1]), Convert.ToInt32(read[2]));
                    if (ans == -1)
                    {
                        MessageBox.Show("Error adding new programmer");
                        return;
                    }
                }
            }
        }
开发者ID:AntonLitovka,项目名称:Backlog,代码行数:50,代码来源:Programmer.cs

示例7: SprintGetAllWorkingDaysTest

 public void SprintGetAllWorkingDaysTest()
 {
     DataManager target = new DataManager(); // TODO: Initialize to an appropriate value
     DateTime[] expected = new DateTime[3]; // TODO: Initialize to an appropriate value
     expected[0] = DateTime.Parse("1.12.12");
     expected[1] = DateTime.Parse("3.12.12");
     expected[2] = DateTime.Parse("20.1.13");
     DateTime[] actual;
     actual = target.SprintGetAllWorkingDays();
     CollectionAssert.AreEqual(expected, actual);
 }
开发者ID:AntonLitovka,项目名称:Backlog,代码行数:11,代码来源:DataManagerTest.cs

示例8: StorySetStoryDescriptionTest

 public void StorySetStoryDescriptionTest()
 {
     DataManager target = new DataManager(); // TODO: Initialize to an appropriate value
     int expected = 0;
     int actual;
     actual = target.StorySetStoryDescription(3, "hz");
     Assert.AreEqual(expected, actual);
     //Assert.Inconclusive("Verify the correctness of this test method.");
 }
开发者ID:AntonLitovka,项目名称:Backlog,代码行数:9,代码来源:DataManagerTest.cs

示例9: Taskadd_new_taskTest

 public void Taskadd_new_taskTest()
 {
     DataManager target = new DataManager(); // TODO: Initialize to an appropriate value
     // int ID = 0; // TODO: Initialize to an appropriate value
     int Task_Owner = 1; // TODO: Initialize to an appropriate value
     int Story_ID = 3; // TODO: Initialize to an appropriate value
     string Description = " "; // TODO: Initialize to an appropriate value
     int Priority = 2; // TODO: Initialize to an appropriate value
     int expected = 0; // TODO: Initialize to an appropriate value
     int actual;
     actual = target.TaskAddNewTask(Story_ID, Priority, Description, Task_Owner);
     Assert.AreEqual(expected, actual);
     //Assert.Inconclusive("Verify the correctness of this test method.");
 }
开发者ID:AntonLitovka,项目名称:Backlog,代码行数:14,代码来源:DataManagerTest.cs

示例10: WorkHoursGetProgrammerWorkHoursAllTest

 public void WorkHoursGetProgrammerWorkHoursAllTest()
 {
     DataManager target = new DataManager(); // TODO: Initialize to an appropriate value
     float expected = 13; // TODO: Initialize to an appropriate value
     float actual;
     actual = target.WorkHoursGetProgrammerWorkHoursAll(1);
     Assert.AreEqual(expected, actual);
     //Assert.Inconclusive("Verify the correctness of this test method.");
 }
开发者ID:AntonLitovka,项目名称:Backlog,代码行数:9,代码来源:DataManagerTest.cs

示例11: SprintGetRemainWorkingDaysTest

 public void SprintGetRemainWorkingDaysTest()
 {
     DataManager target = new DataManager(); // TODO: Initialize to an appropriate value
     int expected = 1; // TODO: Initialize to an appropriate value
     int actual;
     actual = target.SprintGetRemainWorkingDays();
     Assert.AreEqual(expected, actual);
 }
开发者ID:AntonLitovka,项目名称:Backlog,代码行数:8,代码来源:DataManagerTest.cs

示例12: WorkHoursAddNewDayWorkHoursTest

 public void WorkHoursAddNewDayWorkHoursTest()
 {
     DataManager target = new DataManager(); // TODO: Initialize to an appropriate value
     float expected = 0; // TODO: Initialize to an appropriate value
     float actual;
     DateTime day = DateTime.Parse("1.12.12");
     actual = target.WorkHoursAddNewDayWorkHours(6,day);
     Assert.AreEqual(expected, actual);
     //Assert.Inconclusive("Verify the correctness of this test method.");
 }
开发者ID:AntonLitovka,项目名称:Backlog,代码行数:10,代码来源:DataManagerTest.cs

示例13: WorkHoursGetAllSprintWorkHoursTest

 public void WorkHoursGetAllSprintWorkHoursTest()
 {
     DataManager target = new DataManager(); // TODO: Initialize to an appropriate value
     float[] expected = {5,2,7}; // TODO: Initialize to an appropriate value
     float[] actual;
     actual = target.WorkHoursGetAllSprintWorkHours();
     CollectionAssert.AreEqual(expected, actual);
     //Assert.Inconclusive("Verify the correctness of this test method.");
 }
开发者ID:AntonLitovka,项目名称:Backlog,代码行数:9,代码来源:DataManagerTest.cs

示例14: StoryGetStoriesIDForStoryOwnerTest

 public void StoryGetStoriesIDForStoryOwnerTest()
 {
     DataManager target = new DataManager(); // TODO: Initialize to an appropriate value
     int[] expected = {3};
     int[] actual;
     actual = target.StoryGetStoriesIDForStoryOwner(6);
     CollectionAssert.AreEqual(expected, actual);
     //Assert.Inconclusive("Verify the correctness of this test method.");
 }
开发者ID:AntonLitovka,项目名称:Backlog,代码行数:9,代码来源:DataManagerTest.cs

示例15: StoryGetStoryDemoDesTest

 public void StoryGetStoryDemoDesTest()
 {
     DataManager target = new DataManager(); // TODO: Initialize to an appropriate value
     string expected = "fignia";
     string actual;
     actual = target.StoryGetStoryDemoDes(3);
     Assert.AreEqual(expected, actual);
     //Assert.Inconclusive("Verify the correctness of this test method.");
 }
开发者ID:AntonLitovka,项目名称:Backlog,代码行数:9,代码来源:DataManagerTest.cs


注:本文中的WindowsFormsApplication13.DataManager类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。