INNER CODE UNIT · C#

act

nozzlegear/ShopifySharp · ShopifySharp.Extensions.DependencyInjection.Tests/FactoryServiceTests.cs:57

        var act = () =>
        {
            var factory = Activator.CreateInstance(factoryServiceType, sut) as IPartnerServiceFactory;
            factory.Should().BeOfType(factoryServiceType);
            return factory.Create(_partnerCredentials);
        };

        // Assert
        act.Should()
            .NotThrow()
            .Subject
            .Should()
            .BeAssignableTo(serviceInterfaceType, "created service should implement the interface");
        getDomainServiceCall.MustHaveHappened();
        getShopifyApiVersionCall.MustHaveHappened();
        getExecutionPolicyCall.MustHaveHappened();
    }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…