Exemplo n.º 1
0
        public void SetUp()
        {
            _attributeDeclarationProviderMock = MockRepository.GenerateStrictMock <IAttributeDeclarationProvider>();
            _aspectTypesProviderMock          = MockRepository.GenerateStrictMock <IAspectTypesProvider>();
            _customAttributeDataHelperMock    = MockRepository.GenerateStrictMock <ICustomAttributeDataHelper>();

            _provider = new AssemblyAttributeDeclarationProvider(
                _aspectTypesProviderMock,
                _attributeDeclarationProviderMock,
                _customAttributeDataHelperMock);
        }
        public void SetUp()
        {
            _attributeDeclarationProviderMock = MockRepository.GenerateStrictMock <IAttributeDeclarationProvider>();
            _customAttributeDataHelperMock    = MockRepository.GenerateStrictMock <ICustomAttributeDataHelper>();

            _provider = new MemberAttributeDeclarationProvider(_attributeDeclarationProviderMock, _customAttributeDataHelperMock);

            _fakeAdviceBuilder1 = ObjectMother.GetAdviceBuilder();
            _fakeAdviceBuilder2 = ObjectMother.GetAdviceBuilder();
            _fakeAdviceBuilder3 = ObjectMother.GetAdviceBuilder();
        }
Exemplo n.º 3
0
 public TypeAttributeDeclarationProvider(IAttributeDeclarationProvider attributeDeclarationProvider)
 {
     _attributeDeclarationProvider = attributeDeclarationProvider;
 }
 public MemberAttributeDeclarationProvider(IAttributeDeclarationProvider attributeDeclarationProvider)
 {
     _attributeDeclarationProvider = attributeDeclarationProvider;
 }