• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# WindowsFormsApplication13.DataManager类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: Sprintget_sprint_remain_daysTest

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


示例17: Storyadd_new_storyTest

 public void Storyadd_new_storyTest()
 {
     DataManager target = new DataManager(); // TODO: Initialize to an appropriate value
     // int ID = 0; // TODO: Initialize to an appropriate value
     int Story_Owner = 0; // TODO: Initialize to an appropriate value
     DateTime Current_Sprint = DateTime.Parse("01.12.2012"); ; // TODO: Initialize to an appropriate value
     int Work_Status = 0; // TODO: Initialize to an appropriate value
     int Priority = 0; // TODO: Initialize to an appropriate value
     string Description = string.Empty; // TODO: Initialize to an appropriate value
     int expected = 0; // TODO: Initialize to an appropriate value
     int actual;
     string str = " ";
     Image pic = null;
     actual = target.StoryAddNewStory(Story_Owner, Current_Sprint, str, pic, Description, Priority, Work_Status);
     Assert.AreEqual(expected, actual);
     //Assert.Inconclusive("Verify the correctness of this test method.");
 }
开发者ID:AntonLitovka,项目名称:Backlog,代码行数:17,代码来源:DataManagerTest.cs


示例18: Sprintget_sprint_beggining_dayTest

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


示例19: SprintGetNumberOfWorkHoursTest

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


示例20: Sprintget_all_sprint_work_hoursTest

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



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Models.ProductContext类代码示例发布时间:2022-05-26
下一篇:
C# Shapes.Rectangle类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap