Ejemplo n.º 1
0
        public void RoleInformationIsCorrectlyPopulated()
        {
            // arrange
            var fixture = new SeiyuuPageScraperExtensionsFixture();
            var sut     = fixture.Instance;

            // act
            sut.RetrieveRoles(fixture.Document);

            // assert
            var ichinose = sut.Roles.Where(x => x.CharacterId == 4602).ToList();

            ichinose.Count.Should().Be(3);

            var clannad = ichinose.First();

            clannad.AnimeId.Should().Be(2167);
            clannad.AnimePicUrl.Should()
            .Be(
                "https://myanimelist.cdn-dena.com/r/46x64/images/anime/13/8498.webp?s=ee2b5d30dcdbfe036064ba4d67abcaf3");
            clannad.AnimeTitle.Should().Be("Clannad");
            clannad.CharacterName.Should().Be("Ichinose, Kotomi");
            clannad.CharacterPic.Should()
            .Be(
                "https://myanimelist.cdn-dena.com/r/46x64/images/characters/15/33494.webp?s=1f9e52d93a5b3ef542e5d48e74afe787");
            clannad.CharacterUrl.Should().Be("https://myanimelist.net/character/4602/Kotomi_Ichinose");
            clannad.RoleType.Should().Be("Main");
        }
Ejemplo n.º 2
0
        public void SeiyuuFamilyNameIsCorrectlyRetrieved()
        {
            // arrange
            var fixture = new SeiyuuPageScraperExtensionsFixture();
            var sut     = fixture.Instance;

            // act
            sut.RetrieveFamilyName(fixture.Document);

            // assert
            sut.FamilyName.Should().Be("能登");
        }
Ejemplo n.º 3
0
        public void SeiyuuBirthdayIsCorrectlyRetrieved()
        {
            // arrange
            var fixture = new SeiyuuPageScraperExtensionsFixture();
            var sut     = fixture.Instance;

            // act
            sut.RetrieveBirthday(fixture.Document);

            // assert
            sut.BirthDay.Should().Be(new DateTime(1980, 02, 06));
        }
Ejemplo n.º 4
0
        public void RetrievingRolesRetrievesTheCorrectNumberOfRoles()
        {
            // arrange
            var fixture = new SeiyuuPageScraperExtensionsFixture();
            var sut     = fixture.Instance;

            // act
            sut.RetrieveRoles(fixture.Document);

            // assert
            sut.Roles.Count.Should().Be(395);
        }
Ejemplo n.º 5
0
        public void SeiyuuWebsiteIsCorectlyRetrieved()
        {
            // arrange
            var fixture = new SeiyuuPageScraperExtensionsFixture();
            var sut     = fixture.Instance;

            // act
            sut.RetrieveWebsite(fixture.Document);

            // assert
            sut.Website.Should().Be("http://osawa-inc.co.jp/blocks/index/talent00130.html");
        }
Ejemplo n.º 6
0
        public void SeiyuuAdditionalInformationIsCorrectlyRetrieved()
        {
            // arrange
            var fixture = new SeiyuuPageScraperExtensionsFixture();
            var sut     = fixture.Instance;

            // act
            sut.RetrieveAdditionalInformation(fixture.Document);

            // assert
            sut.More.Count.Should().Be(6);
            sut.More.First().Should().Be("Birth place: Kanazawa, Ishikawa Prefecture, Japan");
        }