Ejemplo n.º 1
0
        public bool UpdateExistingDevelopers(string originalDeveloper, Developers newDeveloper)
        {
            Developers oldDeveloper = GetDeveloperByName(originalDeveloper);

            if (oldDeveloper != null)
            {
                oldDeveloper.Name              = newDeveloper.Name;
                oldDeveloper.IdNumber          = newDeveloper.IdNumber;
                oldDeveloper.PluralsightAccess = newDeveloper.PluralsightAccess;

                return(true);
            }
            else
            {
                return(false);
            }
        }
Ejemplo n.º 2
0
        public bool RemoveDeveloperFromList(string name)
        {
            Developers developer = GetDeveloperByName(name);

            if (developer == null)
            {
                return(false);
            }

            int initialCount = _listOfDevelopers.Count;

            _listOfDevelopers.Remove(developer);

            if (initialCount > _listOfDevelopers.Count)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
Ejemplo n.º 3
0
 public void AddDeveloperToList(Developers developer)
 {
     _listOfDevelopers.Add(developer);
 }