public void Save_New_Band_Creates_It()
        {
            IMemberRepository repo = Substitute.For<IMemberRepository>();
            repo.GetBand().Returns(d => null);
            MembersController controller = new MembersController(repo);

            Band band = new Band();

            var result = controller.EditBand(band);

            repo.Received().Save(band);
        }
        public void Save_New_MD_Creates_It()
        {
            IMemberRepository repo = Substitute.For<IMemberRepository>();
            repo.GetDirector().Returns(d => null);
            MembersController controller = new MembersController(repo);

            MusicalDirector director = new MusicalDirector {Name = "Fred", Description = "Fred's Description"};
            
            var result = controller.EditMD(director);

            repo.Received().Save(director);
        }
        public void Save_Existing_Band_Updates_It()
        {
            IMemberRepository repo = Substitute.For<IMemberRepository>();
            repo.GetBand().Returns(new Band { Id = 1 });
            MembersController controller = new MembersController(repo);

            Band band = new Band();

            var result = controller.EditBand(band);

            repo.Received().Save(band);

        }