예제 #1
0
        public MusicManagerTests(MusicClassFixture fixture)
        {
            _fixture = fixture;

            _musicRepository = Substitute.For <IMusicRepository>();

            _musicRepository.ClearAll().Returns(true);
            _musicRepository.GetAllArtists().Returns(_fixture.Artists);
            _musicManager = new MusicManager(_musicRepository);
        }
예제 #2
0
        public bool ClearAll()
        {
            var result = _musicRepository.ClearAll();

            return(result);
        }