public void ShouldReturnInstanceForClassWithConstructorSignature(bool withCache)
        {
            ResponseModelFactory creator = new ResponseModelFactory {
                CacheActivators = withCache
            };

            ModelWithCorrectConstructor instance = creator.CreateInstance <ModelWithCorrectConstructor>(null);

            instance.Should().NotBeNull();
        }
示例#2
0
 public TestModelClass UnCachedResponseModelFactory()
 {
     return(_uncachedFactory.CreateInstance <TestModelClass>(_constructorArgument));
 }