Наследование: MyAnimeListValues
Пример #1
0
		private static void TestAddMangaByObject(ICredentialContext credential)
		{
			var methods = new MangaListMethods(credential);
			var mangaValues = new MangaValues
			{
				MangaStatus = MangaStatus.Reading,
				Comments = "I am planning to read this"
			};
			var responseText = methods.AddManga(MANGA_ID, mangaValues);

			Console.WriteLine(responseText);
		}
		public async Task<string> UpdateMangaAsync(int? id, MangaValues mangaValues)
		{
			var data = GetDataStringFromMyAnimeListValues(mangaValues);
			return await UpdateMangaAsync(id, data);
		}
		/// <summary>
		/// Update Manga info by ID
		/// </summary>
		/// <param name="id">Manga ID on MyAnimeList.net</param>
		/// <param name="mangaValues">object that represents XML specification</param>
		/// <returns>Response from the server in raw string whether manga was added correctly or not</returns>
		public string UpdateManga(int? id, MangaValues mangaValues)
		{
			var data = GetDataStringFromMyAnimeListValues(mangaValues);
			return UpdateManga(id, data);
		}
Пример #4
0
		public MangaValuesTest(CredentialContextFixture credentialContextFixture, ITestOutputHelper output)
			: base(credentialContextFixture)
		{
			_output = output;
			_sut = new MangaValues();
		}
		public MangaValuesFixture()
		{
			Values = GetTestMangaValues();
		}