Exemple #1
0
        public void Given_A_Relative_Url_Should_Return_Thumbnail_Url(string url, string expected)
        {
            // Arrange
            _config.WikiaDomainUrl.Returns(DomainUrl);

            // Act
            var result = _sut.FromWebPage(url);

            // Assert
            result.Should().BeEquivalentTo(expected);
        }
        public void Given_An_Archetype_Web_Page_Url_Should_Return_Thumbnail_Url(string archetypeUrl, string expected)
        {
            // Arrange
            _appsettings.Value.Returns(new AppSettings {
                WikiaDomainUrl = "https://yugioh.fandom.com"
            });

            // Act
            var result = _sut.FromWebPage(archetypeUrl);

            // Assert
            result.Should().BeEquivalentTo(expected);
        }