File tree 1 file changed +12
-3
lines changed
1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -57,12 +57,21 @@ public void InterceptsPublicInterfacesUseNoneGenericMethod()
57
57
mockDecorator . Verify ( e => e . Decorate ( ) , Times . Never ) ;
58
58
}
59
59
60
- public class Decorator ( IPublicInterface decoratedService , IDecoratorInterface decoratorInterface ) : IPublicInterface
60
+ public class Decorator : IPublicInterface
61
61
{
62
+ private readonly IPublicInterface _decoratedService ;
63
+ private readonly IDecoratorInterface _decoratorInterface ;
64
+
65
+ public Decorator ( IPublicInterface decoratedService , IDecoratorInterface decoratorInterface )
66
+ {
67
+ _decoratedService = decoratedService ;
68
+ _decoratorInterface = decoratorInterface ;
69
+ }
70
+
62
71
public string PublicMethod ( )
63
72
{
64
- decoratorInterface . Decorate ( ) ;
65
- return decoratedService . PublicMethod ( ) ;
73
+ _decoratorInterface . Decorate ( ) ;
74
+ return _decoratedService . PublicMethod ( ) ;
66
75
}
67
76
}
68
77
You can’t perform that action at this time.
0 commit comments