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));
 }