Ejemplo n.º 1
0
 private Project(EntityId id, ProjectName name, ProjectCode code, DateAndTime startDate
                 , Money budget, EntityId clientId, Email owner, ProjectStatus status
                 , ServiceOrderNumber orderNumber, Version currentVersion)
 {
     Id          = id;
     Name        = name;
     Code        = code;
     StartDate   = startDate;
     ClientId    = clientId;
     Budget      = budget;
     Status      = status;
     OrderNumber = orderNumber;
     Owner       = owner;
     Version     = currentVersion;
 }
Ejemplo n.º 2
0
 public static Project NewRequest(EntityId id, ProjectName name, ProjectCode code, DateAndTime startDate, Money budget, EntityId clientId)
 {
     return(From(id, name, code, startDate, budget, clientId, Email.Empty(), ProjectStatus.Default(), ServiceOrderNumber.Empty(), Version.New()));
 }
Ejemplo n.º 3
0
 public static Project Empty()
 {
     return(From(EntityId.Empty(), ProjectName.Empty(), ProjectCode.Empty(), DateAndTime.Empty(), Money.Zero(),
                 EntityId.Empty(), Email.Empty(), ProjectStatus.Default(), ServiceOrderNumber.Empty(),
                 Version.Empty()));
 }