-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
83 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
.. yandex-music-api documentation master file, created by | ||
sphinx-quickstart on Tue Jun 4 13:45:53 2019. | ||
You can adapt this file completely to your liking, but it should at least | ||
contain the root `toctree` directive. | ||
Yandex.Music.API | ||
================================================================== | ||
|
||
.. toctree:: | ||
|
||
../common/common |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
.. yandex-music-api documentation master file, created by | ||
sphinx-quickstart on Tue Jun 4 13:45:53 2019. | ||
You can adapt this file completely to your liking, but it should at least | ||
contain the root `toctree` directive. | ||
Yandex.Music.Client | ||
================================================================== | ||
|
||
.. toctree:: | ||
|
||
../common/common |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
.. yandex-music-api documentation master file, created by | ||
sphinx-quickstart on Tue Jun 4 13:45:53 2019. | ||
You can adapt this file completely to your liking, but it should at least | ||
contain the root `toctree` directive. | ||
Сборка и тестирование | ||
================================================================== | ||
|
||
================================================================== | ||
Сборка | ||
================================================================== | ||
|
||
Проекты нацелены на .Net Core 3.1. Сборка вне Visual Studio 2019 производится | ||
стандартной командой | ||
|
||
.. code-block:: shell | ||
dotnet build | ||
================================================================== | ||
Тестирование | ||
================================================================== | ||
|
||
В решение добавлен проект с тестами. Для тестов используется фреймворк | ||
xUnit с расширениями FluentAssertions и Xunit.Extensions.Ordering. Т.к. | ||
при тестировании используются зависимые данные, все тесты запускаются | ||
последовательно и учитывают результат предыдущих необходимых операций. | ||
|
||
Для тестирования необходимо добавить в директорию сборки файл appSettings.json | ||
со следующим содержимым: | ||
|
||
.. code-block:: json | ||
{ | ||
"login": "", | ||
"password": "", | ||
"token": "" | ||
} | ||
Поля объекта соответственно указывают на логин, пароль и токен для доступа к | ||
Яндекс.Музыка. При отсутствии токена будет произведена авторизация и получение | ||
токена. Для работы с библиотекой рекомендуется использовать способ доступа именно | ||
через токен. | ||
|
||
Вне Visual Studio 2019 запуск тестов производится стандартной командой | ||
|
||
.. code-block:: shell | ||
dotnet test | ||
В результате теста в выходной директории будет создана папка responses, в | ||
которой в случае проблем с десериализацией ответов будут сохранены копии ответа, | ||
а также создан файл с логом, содержащий описание проблемы. Их можно прикладывать | ||
к `issues <https://github.com/K1llMan/Yandex.Music.Api/issues>`_. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,7 @@ | ||
.. yandex-music-api documentation master file, created by | ||
sphinx-quickstart on Tue Jun 4 13:45:53 2019. | ||
You can adapt this file completely to your liking, but it should at least | ||
contain the root `toctree` directive. | ||
Документация неофициальной C# библиотеки для API Yandex Music | ||
Документация неофициальной C# библиотеки для API и клиента Yandex Music | ||
================================================================== | ||
|
||
.. toctree:: | ||
|
||
readme | ||
yandex_music | ||
api/api | ||
client/client |