示例#1
0
 public StrongPoint(string name, EClassStrongPoint classStrongPoint, string description = null)
 {
     this.Id               = Guid.NewGuid();
     this.Name             = name;
     this.ClassStrongPoint = classStrongPoint;
     this.Description      = description;
 }
示例#2
0
 public CreateStrongPointCommand(string name, EClassStrongPoint classStrongPoint, Guid idCoachee, string description = null)
 {
     this.IdCoachee   = idCoachee;
     this.Name        = name;
     this.Class       = classStrongPoint;
     this.Description = description;
 }
示例#3
0
 public ChangeStrongPointCommand(Guid id, string name, EClassStrongPoint classStrongPoint, string description = null)
 {
     this.Id          = id;
     this.Name        = name;
     this.Class       = classStrongPoint;
     this.Description = description;
 }
示例#4
0
 public StrongPoint(string name, EClassStrongPoint classStrongPoint, string description = null)
 {
     this.Id = Guid.NewGuid();
     this.Name = name;
     this.ClassStrongPoint = classStrongPoint;
     this.Description = description;
 }
 public CreateStrongPointCommand(string name, EClassStrongPoint classStrongPoint, Guid idCoachee, string description = null)
 {
     this.IdCoachee = idCoachee;
     this.Name = name;
     this.Class = classStrongPoint;
     this.Description = description;
 }
示例#6
0
 public void ChangeClass(EClassStrongPoint classStrongPoint)
 {
     if (!this.ChangeClassScopeIsValid(classStrongPoint))
     {
         return;
     }
     this.ClassStrongPoint = classStrongPoint;
 }
示例#7
0
 public static bool ChangeClassScopeIsValid(this StrongPoint strongPoint, EClassStrongPoint classStrongPoint)
 {
     return(AssertionConcern.IsSatisfiedBy(
                AssertionConcern.AssertArgumentNotNull(classStrongPoint, Errors.InvalidClassStrongPoint)
                ));
 }
 public static bool ChangeClassScopeIsValid(this StrongPoint strongPoint, EClassStrongPoint classStrongPoint)
 {
     return AssertionConcern.IsSatisfiedBy(
                    AssertionConcern.AssertArgumentNotNull(classStrongPoint, Errors.InvalidClassStrongPoint)
         );
 }
示例#9
0
 public void ChangeClass(EClassStrongPoint classStrongPoint)
 {
     if (!this.ChangeClassScopeIsValid(classStrongPoint))
         return;
     this.ClassStrongPoint = classStrongPoint;
 }