public void AllTest()
        {
            IUnitOfWork _context = new ToolManDataContext(); // TODO: 初始化为适当的值
            ProjectRepository target = new ProjectRepository(_context); // TODO: 初始化为适当的值
            List<Project> expected = null; // TODO: 初始化为适当的值
            int count = 3;

            List<Project> actual;
            actual = target.All();
            Assert.AreEqual(count, actual.Count);
              // Assert.Inconclusive("验证此测试方法的正确性。");
        }
Exemplo n.º 2
0
 /// <summary>
 /// 实例化模具仓库
 /// </summary>
 /// <param name="_context"></param>
 public MoldRepository(IUnitOfWork _context)
 {
     this.context = _context as ToolManDataContext;
 }
 /// <summary>
 /// 实例化唯一件库存仓库
 /// </summary>
 /// <param name="_context"></param>
 public UniqStorageRepository(IUnitOfWork _context)
 {
     this.context = _context as ToolManDataContext;
 }
 /// <summary>
 /// 实例化操作台仓库
 /// </summary>
 /// <param name="_context"></param>
 public WorkstationRepository(IUnitOfWork _context)
 {
     this.context = _context as ToolManDataContext;
 }
 public PartGroupRepository(IUnitOfWork _context)
 {
     this.context = _context as ToolManDataContext;
 }
 /// <summary>
 /// 实例化附件仓库
 /// </summary>
 /// <param name="_context"></param>
 public AttachmentRepository(IUnitOfWork _context)
 {
     this.context = _context as ToolManDataContext;
 }
 /// <summary>
 /// 实例化仓库仓库
 /// </summary>
 /// <param name="_context"></param>
 public WarehouseRepository(IUnitOfWork _context)
 {
     this.context = _context as ToolManDataContext;
 }
 /// <summary>
 /// 实例化员工仓库
 /// </summary>
 /// <param name="_context"></param>
 public EmployeeRepository(IUnitOfWork _context)
 {
     this.context = _context as ToolManDataContext;
 }