예제 #1
0
 public LevelBDecorator(IDecorated nested) => _nested = nested;
예제 #2
0
 public Decorator2(IDecorated decorated)
 {
     Assert.NotNull(decorated);
     Decorated = decorated;
 }
예제 #3
0
 public GenericImproperDecoratorK1(IDecorated <int> nested) => _nested = nested;
 // The decorator should always accept an abstract type
 // or interface of the type to be decorated
 public DecoratorBase(IDecorated decorated)
 {
     this.decorated = decorated;
 }
예제 #5
0
 public GenericLevelDDecorator(IDecorated <T> nested) => _nested = nested;
 public DecoratorForAny(IDecorated <T> decorated)
 {
     Assert.NotNull(decorated);
     Decorated = decorated;
 }
예제 #7
0
파일: After.cs 프로젝트: mvladk/dp2012
 public DecoratorX(IDecorated i_Decorated)
     : base(i_Decorated)
 {
 }
예제 #8
0
파일: After.cs 프로젝트: mvladk/dp2012
 public Decorator(IDecorated i_Decorated)
 {
     m_Decorated = i_Decorated;
 }
 public DecoratorBaseTest(IDecorated mockOfIDecorated) : base(mockOfIDecorated) /* ... */ }