#develop (short for SharpDevelop) is a free IDE for .NET programming languages.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

29 lines
871 B

// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
using System;
using System.Collections.Generic;
using ICSharpCode.SharpDevelop.Dom;
using Rhino.Mocks;
namespace PackageManagement.Tests.Helpers
{
public class PropertyHelper
{
public IProperty Property;
public List<IAttribute> Attributes = new List<IAttribute>();
public void CreateProperty(string name)
{
Property = MockRepository.GenerateMock<IProperty, IEntity>();
Property.Stub(p => p.Attributes).Return(Attributes);
}
public void AddAttribute(string fullName, string shortName)
{
var attributeHelper = new AttributeHelper();
attributeHelper.CreateAttribute(fullName, shortName);
Attributes.Add(attributeHelper.Attribute);
}
}
}