private void AddDevToTeam() { SeeAllDev(); Console.WriteLine("\nEnter ID of developer you would like to add to Team:"); string identAsInt = Console.ReadLine(); int devID = Convert.ToInt32(identAsInt); DevContent pulledID = _contentRepo.GetDevContentByID(devID); GetDevTeamList(); Console.WriteLine("\nWhat is the ID of the team you would like to add to:"); string teamIdentAsInt = Console.ReadLine(); int devTeamID = Convert.ToInt32(teamIdentAsInt); DevTeamContent pulledTeamID = _teamRepo.GetDevTeamByID(devTeamID); //add pulledID to pulledTeamID?????? pulledTeamID.ListOfDevs.Add(pulledID); //COME BACK LATER //bool wasAdded = _teamRepo.RemoveFromTeam(); //if (wasAdded) //{ // Console.WriteLine("Developer successfully added to Team."); //} //else //{ // Console.WriteLine("Error... Developer could not be added."); //} }
public void AddDevToList_ShouldGetNotNull() { DevContent content = new DevContent("Richard Torres", 1, true); DevRepo repository = new DevRepo(); repository.AddDevToList(content); DevContent contentfromDirectory = repository.GetDevContentByID(1); Assert.IsNotNull(contentfromDirectory); }