Ejemplo n.º 1
0
 public void ValdateIfAnyMembersExist(IAllMembers allMembers)
 {
     if (allMembers.AllMembersList.Count == 0)
     {
         throw new NoMembersInAppException(NoMembersInApplication);
     }
 }
Ejemplo n.º 2
0
 public void ValidateMemberExistance(IAllMembers allMembers, string memberName)
 {
     if (!allMembers.AllMembersList.ContainsKey(memberName))
     {
         var NoSuchMemberInApplicationMessage = string.Format(NoSuchMemberInApplication, memberName);
         throw new MemberNotInAppException(NoSuchMemberInApplicationMessage);
     }
 }
Ejemplo n.º 3
0
 public void ValidateIfPersonExists(IAllMembers allMembers, string personName)
 {
     if (allMembers.AllMembersList.ContainsKey(personName))
     {
         var PersonAlreadyExistsMessage = string.Format(PersonAlreadyExists, personName);
         throw new PersonAlreadyInAppException(PersonAlreadyExistsMessage);
     }
 }
Ejemplo n.º 4
0
 public ShowAllPeopleOperation(
     IBusinessLogicValidator businessLogicValidator,
     IInputValidator inputValidator,
     IAllMembers allMembers,
     IAllMembersOperations allMembersOpertaions)
 {
     this.businessLogicValidator = businessLogicValidator;
     this.inputValidator         = inputValidator;
     this.allMembers             = allMembers;
     this.allMembersOpertaions   = allMembersOpertaions;
 }
 public ShowPersonsActivityOperation(
     IBusinessLogicValidator businessLogicValidator,
     IInputValidator inputValidator,
     IAllMembers allMembers,
     IMemberOpertaions memberOperations)
 {
     this.businessLogicValidator = businessLogicValidator;
     this.inputValidator         = inputValidator;
     this.allMembers             = allMembers;
     this.memberOperations       = memberOperations;
 }
Ejemplo n.º 6
0
 public AddPersonToTeamOperation(
     IInputValidator inputValidator,
     IAllTeams allTeams,
     IAllMembers allMembers,
     IBusinessLogicValidator businessLogicValidator,
     ITeamOperations teamOperations)
 {
     this.inputValidator         = inputValidator;
     this.allTeams               = allTeams;
     this.allMembers             = allMembers;
     this.businessLogicValidator = businessLogicValidator;
     this.teamOperations         = teamOperations;
 }
        public string ShowAllMembersToString(IAllMembers allMembers)
        {
            StringBuilder sb = new StringBuilder();

            int numberOfPerson = 1;

            foreach (var item in allMembers.AllMembersList)
            {
                sb.AppendLine($"{numberOfPerson}. {item.Key}");
                numberOfPerson++;
            }

            return(sb.ToString().Trim());
        }
 public CreatePersonOperation(
     IBusinessLogicValidator businessLogicValidator,
     IInputValidator inputValidator,
     IAllTeams allTeams,
     IAllMembers allMembers,
     IWimFactory factory,
     IAllMembersOperations allMembersOperations)
 {
     this.businessLogicValidator = businessLogicValidator;
     this.inputValidator         = inputValidator;
     this.allTeams             = allTeams;
     this.allMembers           = allMembers;
     this.factory              = factory;
     this.allMembersOperations = allMembersOperations;
 }
Ejemplo n.º 9
0
 public CreateFeedbackOperation(
     IBusinessLogicValidator businessLogicValidator,
     IInputValidator inputValidator,
     IAllTeams allTeams,
     IAllMembers allMembers,
     IWimFactory factory,
     IDescriptionBuilder descriptionBuilder,
     IBoardOperations boardOperations)
 {
     this.businessLogicValidator = businessLogicValidator;
     this.inputValidator         = inputValidator;
     this.allTeams           = allTeams;
     this.allMembers         = allMembers;
     this.factory            = factory;
     this.descriptionBuilder = descriptionBuilder;
     this.boardOperations    = boardOperations;
 }
Ejemplo n.º 10
0
 public AssignUnassignItemOperation(
     IInputValidator inputValidator,
     IAllTeams allTeams,
     IAllMembers allMembers,
     IStoryOperations storyOperations,
     IBugOperations bugOperations,
     IBusinessLogicValidator businessLogicValidator,
     IMemberOpertaions memberOpertaions,
     IBoardOperations boardOperations)
 {
     this.inputValidator         = inputValidator;
     this.allTeams               = allTeams;
     this.allMembers             = allMembers;
     this.bugOperations          = bugOperations;
     this.storyOperations        = storyOperations;
     this.businessLogicValidator = businessLogicValidator;
     this.memberOpertaions       = memberOpertaions;
     this.boardOperations        = boardOperations;
 }
Ejemplo n.º 11
0
 public CreateBugOperation(
     IInputValidator inputValidator,
     IAllTeams allTeams,
     IAllMembers allMembers,
     IWimFactory factory,
     IDescriptionBuilder descriptionBuilder,
     IStepsToReproduceBuilder stepsToReproduceBuilder,
     IBusinessLogicValidator businessLogicValidator,
     IMemberOpertaions memberOpertaions,
     IBoardOperations boardOperations)
 {
     this.inputValidator          = inputValidator;
     this.allTeams                = allTeams;
     this.allMembers              = allMembers;
     this.factory                 = factory;
     this.descriptionBuilder      = descriptionBuilder;
     this.stepsToReproduceBuilder = stepsToReproduceBuilder;
     this.businessLogicValidator  = businessLogicValidator;
     this.memberOpertaions        = memberOpertaions;
     this.boardOperations         = boardOperations;
 }
 public void AddMember(IAllMembers allMembers, IMember member)
 {
     allMembers.AllMembersList.Add(member.Name, member);
 }