IAttribute CreateAttribute(string name) { IReturnType returnType = MockRepository.GenerateStub <IReturnType>(); returnType.Stub(t => t.FullyQualifiedName).Return(name); IAttribute attribute = MockRepository.GenerateStub <IAttribute>(); attribute.Stub(a => a.AttributeType).Return(returnType); return(attribute); }
public void AddDotNetName(string name) { ReturnType.Stub(t => t.DotNetName).Return(name); }
public void CreateReturnType(string fullyQualifiedName) { ReturnType = MockRepository.GenerateStub <IReturnType>(); ReturnType.Stub(b => b.FullyQualifiedName).Return(fullyQualifiedName); }
public void CreateReturnType(string fullyQualifiedName) { ReturnType = MockRepository.GenerateStub<IReturnType>(); ReturnType.Stub(b => b.FullyQualifiedName).Return(fullyQualifiedName); }