Example #1
0
        public void SetUp()
        {
            theLibrary = new ConverterLibrary();
            var basicConverterFamily = new BasicConverterFamily(theLibrary);

            theDescription = Description.For(basicConverterFamily);

            // Just lifts the Family list right off of ConverterLibrary
            theFamilyList = theDescription.BulletLists.Single();
        }
        public void SetUp()
        {
            theLibrary = new ConverterLibrary();
            _registry = new ValueConverterRegistry(new IConverterFamily[0], theLibrary);
            _property = typeof (PropertyHolder).GetProperty("Property");
            _basicConverterFamily = _registry.Families.SingleOrDefault(cf =>
                                                                       cf.Matches(_property)) as BasicConverterFamily;
            _basicConverterFamily.ShouldNotBeNull();

            _context = MockRepository.GenerateMock<IPropertyContext>();
            _context.Stub(x => x.Property).Return(_property);
            _propertyValue = "some value";
            _context.Expect(c => c.PropertyValue).Return(_propertyValue).Repeat.Times(3);
        }
        public void SetUp()
        {
            theLibrary = new ConverterLibrary();
            var basicConverterFamily = new BasicConverterFamily(theLibrary);

            theDescription = Description.For(basicConverterFamily);

            // Just lifts the Family list right off of ConverterLibrary
            theFamilyList = theDescription.BulletLists.Single();
        }