public WhenFactoringClassesWithInvalidConstructorsWithoutAContext(ITestOutputHelper output)
        {
            ExpectedNoPublicConstructor        = ClassWithoutAPublicConstructor.Create();
            ExpectedMultiplePublicConstructors = new ClassWithMultiplePublicConstructors();

            _container =
                new RegistrationSetup()
                .RegisterFactory(() => ExpectedNoPublicConstructor)
                .RegisterFactory(() => ExpectedMultiplePublicConstructors)
                .Construct(GetType().GetTypeInfo().Assembly, out string code);

            output.WriteLine(code);
        }
예제 #2
0
 public ClassWithMultiplePublicConstructors()
     : this(ClassWithoutAPublicConstructor.Create())
 {
 }