public void Stub(IPropertyAdapter property)
 {
     var itemType = property.PropertyType.GetGenericArguments()[0];
     var list = CreateListOf(itemType);
     PopulateList(list, itemType);
     property.Stub(list);
 }
        public void Stub(IPropertyAdapter property)
        {
            var itemType = property.PropertyType.GetGenericArguments()[0];
            var list     = CreateListOf(itemType);

            PopulateList(list, itemType);
            property.Stub(list);
        }
Пример #3
0
        public void Stub(IPropertyAdapter property)
        {
            var stub = MockRepository.GenerateStub(property.PropertyType);

            property.Stub(stub);
        }
 public void Stub(IPropertyAdapter property)
 {
     var stub = MockRepository.GenerateStub(property.PropertyType);
     property.Stub(stub);
 }