INNER CODE UNIT · C#

domainUtility

nozzlegear/ShopifySharp · ShopifySharp.Extensions.DependencyInjection.Tests/ServiceCollectionExtensionTests.cs:155

        var domainUtility = container.AddShopifySharpUtilities(options =>
            {
                options.DomainUtility = new TestDomainUtility();
            })
            .BuildServiceProvider()
            .GetService<IShopifyDomainUtility>();
        var getUri = () => domainUtility!.BuildShopDomainUri("some-shop-domain");

        // Assert
        domainUtility.Should()
            .NotBeNull()
            .And.BeOfType<TestDomainUtility>()
            .And.BeAssignableTo<IShopifyDomainUtility>();

        getUri.Should().Throw<TestException>();
    }

    [Fact]

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…