public void ShouldReturnInstanceForClassWithConstructorSignature(bool withCache) { ResponseModelFactory creator = new ResponseModelFactory { CacheActivators = withCache }; ModelWithCorrectConstructor instance = creator.CreateInstance <ModelWithCorrectConstructor>(null); instance.Should().NotBeNull(); }
public TestModelClass UnCachedResponseModelFactory() { return(_uncachedFactory.CreateInstance <TestModelClass>(_constructorArgument)); }