INNER CODE UNIT · C#
getGraphContentSerializerCall
nozzlegear/ShopifySharp · ShopifySharp.Extensions.DependencyInjection.Tests/FactoryServiceTests.cs:86
var getGraphContentSerializerCall = A.CallTo(() => sut.GetService(typeof(IHttpContentSerializer)));
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