Example #1
0
        public void GetByCategoryTestmethod(string category)
        {
            HttpClient       client  = TestServer.GetClient();
            IMegatokyoClient service = new MegatokyoClient(client);
            ChapterOutputDTO result  = service.GetChapterAsync(category).GetAwaiter().GetResult();

            Assert.IsTrue(result.Category == category);
        }
Example #2
0
        public void GetByCategoryTestmethod(int number)
        {
            HttpClient       client  = TestServer.GetClient();
            IMegatokyoClient service = new MegatokyoClient(client);
            StripOutputDTO   result  = service.GetStripAsync(number).GetAwaiter().GetResult();

            Assert.IsTrue(result.Number == number);
        }
Example #3
0
        public void ChaptersAllAsyncTestMethod()
        {
            HttpClient       client  = TestServer.GetClient();
            IMegatokyoClient service = new MegatokyoClient(client);
            ICollection <ChapterOutputDTO> result = service.GetAllChaptersAsync().GetAwaiter().GetResult();

            Assert.IsTrue(result.Count > 0);
        }
Example #4
0
        public void GetByCategoryTestmethod(string category, int count)
        {
            HttpClient                   client  = TestServer.GetClient();
            IMegatokyoClient             service = new MegatokyoClient(client);
            ICollection <StripOutputDTO> result  = service.GetCategoryStripsAsync(category).GetAwaiter().GetResult();

            Assert.IsTrue(result.Count == count);
        }