public MusicPlayerDto GetPlayerPath()
        {
            var playerPath = new MusicPlayerDto();
            var programFilesPath = Environment.GetFolderPath(Environment.SpecialFolder.ProgramFilesX86);

            playerPath.PlayerPath = Directory.Exists(Path.Combine(programFilesPath, "Deliplayer2")) 
                ? Path.Combine(programFilesPath, "Deliplayer2\\DeliPlayer.exe") 
                : ".\\xmplay\\xmplay.exe";

            return playerPath;
        }
        public void GetPlayerPath_ReturnsMusicPlayerDto()
        {
            var musicPlayer = new MusicPlayerDto {PlayerPath = @"C:\Deliplayer\deli.exe"};
            A.CallTo(() => _musicPlayerRepository.GetPlayerPath())
                .Returns(musicPlayer);

            var result = _musicPlayerService.GetPlayerPath();

            Assert.IsNotNull(result);
            Assert.IsInstanceOfType(result, typeof (MusicPlayerDto));
            Assert.AreEqual(musicPlayer.PlayerPath, result.PlayerPath);
        }