コード例 #1
0
            /// <inheritdoc />
            protected override IEnumerable <Result <Uri> > GetImageUris
            (
                Optional <CDNImageFormat> imageFormat = default,
                Optional <ushort> imageSize           = default
            )
            {
                var applicationID = new Snowflake(0);

                var mockedApplication = new Mock <IApplication>();

                mockedApplication.SetupGet(g => g.ID).Returns(applicationID);

                var application = mockedApplication.Object;

                yield return(CDN.GetApplicationAssetUrl(application, "1", imageFormat, imageSize));

                yield return(CDN.GetApplicationAssetUrl(applicationID, "1", imageFormat, imageSize));
            }