File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -57,12 +57,21 @@ public void InterceptsPublicInterfacesUseNoneGenericMethod()
5757 mockDecorator . Verify ( e => e . Decorate ( ) , Times . Never ) ;
5858 }
5959
60- public class Decorator ( IPublicInterface decoratedService , IDecoratorInterface decoratorInterface ) : IPublicInterface
60+ public class Decorator : IPublicInterface
6161 {
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+
6271 public string PublicMethod ( )
6372 {
64- decoratorInterface . Decorate ( ) ;
65- return decoratedService . PublicMethod ( ) ;
73+ _decoratorInterface . Decorate ( ) ;
74+ return _decoratedService . PublicMethod ( ) ;
6675 }
6776 }
6877
You can’t perform that action at this time.
0 commit comments