Пример #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)
                ));
 }
Пример #8
0
 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;
 }