Exemplo n.º 1
0
        private void SetupDefineCustomAttribute(ICustomAttributeTargetBuilder customAttributeTargetBuilderMock, IMutableInfo mutableInfo)
        {
            var declaration = CustomAttributeDeclarationObjectMother.Create();

            mutableInfo.AddCustomAttribute(declaration);
            customAttributeTargetBuilderMock.Expect(mock => mock.SetCustomAttribute(declaration));
        }
Exemplo n.º 2
0
 private void DefineCustomAttributes(ICustomAttributeTargetBuilder customAttributeTargetBuilder, IMutableInfo mutableInfo)
 {
     foreach (var declaration in mutableInfo.AddedCustomAttributes)
     {
         customAttributeTargetBuilder.SetCustomAttribute(declaration);
     }
 }
Exemplo n.º 3
0
        protected BuilderDecoratorBase(ICustomAttributeTargetBuilder customAttributeTargetBuilder, IEmittableOperandProvider emittableOperandProvider)
        {
            ArgumentUtility.CheckNotNull("customAttributeTargetBuilder", customAttributeTargetBuilder);
            ArgumentUtility.CheckNotNull("emittableOperandProvider", emittableOperandProvider);

            _customAttributeTargetBuilder = customAttributeTargetBuilder;
            EmittableOperandProvider      = emittableOperandProvider;
        }