Ejemplo n.º 1
0
 public MeteringPoint(GsrnNumber gsrnNumber, MeteringPointType meteringPointType)
 {
     GsrnNumber         = gsrnNumber;
     _meteringPointType = meteringPointType;
     _physicalState     = PhysicalState.New;
     AddDomainEvent(new MeteringPointCreated(GsrnNumber, _meteringPointType));
 }
Ejemplo n.º 2
0
 private MeteringPoint(GsrnNumber gsrnNumber, MeteringPointType meteringPointType, bool isProductionObligated, List <Relationship> relationships, int id, int version, PhysicalState physicalState)
 {
     GsrnNumber             = gsrnNumber;
     _meteringPointType     = meteringPointType;
     _physicalState         = physicalState;
     _isProductionObligated = isProductionObligated;
     _relationships         = relationships;
     Id      = id;
     Version = version;
 }
Ejemplo n.º 3
0
 public static MeteringPoint CreateProduction(GsrnNumber gsrnNumber, bool isObligated)
 {
     return(new MeteringPoint(gsrnNumber, MeteringPointType.Production, isObligated));
 }
Ejemplo n.º 4
0
 private MeteringPoint(GsrnNumber gsrnNumber, MeteringPointType meteringPointType, bool isProductionObligated)
     : this(gsrnNumber, meteringPointType)
 {
     _isProductionObligated = isProductionObligated;
 }