Exemplo n.º 1
0
 public static Contract Create(PersonsByEstate personsByEstate,
                               ContractType contractType,
                               WaterMeter waterMeter,
                               int initialMeterRead   = 0,
                               bool doubleBasicCharge = false,
                               bool isActive          = true)
 {
     return(new Contract()
     {
         PersonsByEstate = personsByEstate,
         ContractTypeId = contractType.Id,
         MeterId = waterMeter.Id,
         InitialMeterRead = initialMeterRead,
         DoubleBasicCharge = doubleBasicCharge,
         IsActive = isActive,
         EmissionDate = DateTime.Now
     });
 }
Exemplo n.º 2
0
 public static ContractType SincronizeObject(ContractType currentObject, ContractType newObject)
 {
     currentObject.ContractTypeCode = newObject.ContractTypeCode;
     currentObject.Clone(newObject);
     return(currentObject);
 }