INNER CODE UNIT · C#
getJsonSerializerCall
nozzlegear/ShopifySharp · ShopifySharp.Extensions.DependencyInjection.Tests/FactoryServiceTests.cs:87
var getJsonSerializerCall = A.CallTo(() => sut.GetService(typeof(IJsonSerializer)));
getDomainServiceCall.Returns(A.Dummy<IShopifyDomainUtility>());
getExecutionPolicyCall.Returns(A.Dummy<IRequestExecutionPolicy>());
getShopifyApiVersionCall.Returns(A.Dummy<IShopifyApiVersion>());
getGraphContentSerializerCall.Returns(A.Dummy<IHttpContentSerializer>());
getJsonSerializerCall.Returns(A.Dummy<IJsonSerializer>());
// Act
var act = () =>
{
var factory = Activator.CreateInstance(factoryServiceType, sut) as IServiceFactory<IShopifyService>;
factory.Should().BeOfType(factoryServiceType);
return factory.Create(_credentials);
};
// Assert
act.Should()