public void DeleteApuMaintainContract(APUMaintainContractDTO apuMaintainContract)
 {
     MaintainContract deleteApuMaintainContract =
         _contractRepository.Get(apuMaintainContract.APUMaintainContractId);
     //获取需要删除的对象。
     _contractRepository.Remove(deleteApuMaintainContract); //删除APU维修合同。
 }
        public void GetApuMaintainContracts()
        {
            // Arrange
            var service = UniContainer.Resolve<IMaintainContractAppService>();

            // Act
            //var result = service.GetApuMaintainContracts().ToList();
            var add = new APUMaintainContractDTO();

            // Assert
            //Assert.IsTrue(result.Any());
        }
 public void ModifyApuMaintainContract(APUMaintainContractDTO apuMaintainContract)
 {
     MaintainContract updateApuMaintainContract =
         _contractRepository.Get(apuMaintainContract.APUMaintainContractId);
     MaintainContractFactory.SetMaintainContract(updateApuMaintainContract, apuMaintainContract.Name,
         apuMaintainContract.Number, apuMaintainContract.Signatory,
         apuMaintainContract.SignDate, apuMaintainContract.Abstract, apuMaintainContract.SignatoryId,
         apuMaintainContract.DocumentId, apuMaintainContract.DocumentName);
     //获取需要更新的对象。
     _contractRepository.Modify(updateApuMaintainContract);
 }
 public void InsertApuMaintainContract(APUMaintainContractDTO apuMaintainContract)
 {
     APUMaintainContract newApuMaintainContract = MaintainContractFactory.CreateApuMaintainContract();
     MaintainContractFactory.SetMaintainContract(newApuMaintainContract, apuMaintainContract.Name,
         apuMaintainContract.Number, apuMaintainContract.Signatory,
         apuMaintainContract.SignDate, apuMaintainContract.Abstract, apuMaintainContract.SignatoryId,
         apuMaintainContract.DocumentId, apuMaintainContract.DocumentName);
     _contractRepository.Add(newApuMaintainContract);
 }