public void TestUpdateMemberOverwrites()
        {
            ITeamRepository repository = new TestMemoryTeamRepository();
            var             controller = new MembersController(repository);

            var teamId    = Guid.NewGuid();
            var team      = new Team("TestTeam", teamId);
            var debugTeam = repository.Add(team);

            var memberId  = Guid.NewGuid();
            var newMember = new Member(memberId)
            {
                FirstName = "Jim",
                LastName  = "Smith"
            };

            controller.CreateMember(newMember, teamId);

            team = repository.Get(teamId);

            var updateMember = new Member(memberId)
            {
                FirstName = "Bob",
                LastName  = "Jones"
            };

            controller.UpdateMember(updateMember, teamId, memberId);

            team = repository.Get(teamId);
            var testMember = team.Members.First(m => m.ID == memberId);

            Assert.Equal(testMember.FirstName, "Bob");
            Assert.Equal(testMember.LastName, "Jones");
        }
        public void TestCreateMemberAddsTeamToList()
        {
            ITeamRepository repository = new TestMemoryTeamRepository();
            var             controller = new MembersController(repository);

            var teamId = Guid.NewGuid();
            var team   = new Team("TestController", teamId);

            repository.Add(team);

            var newMemberID = Guid.NewGuid();
            var newMember   = new Member(newMemberID);

            controller.CreateMember(newMember, teamId);

            team = repository.Get(teamId);

            Assert.True(team.Members.Contains(newMember));
        }