public void ShouldBeAbleToUseDoForEach()
        {
            var simpleClasses = new List <SimpleClass>();
            Action <MyClass, SimpleClass> action = (x, y) => x.Add(y);

            using (mocks.Record())
            {
                operable.Expect(x => x.ObjectBuilder).Return(objectBuilder);
                objectBuilder.Expect(x => x.DoMultiple(action, simpleClasses)).Return(objectBuilder);
            }

            OperableExtensions.DoForEach((IOperable <MyClass>)operable, action, simpleClasses);
        }
        public void ShouldBeAbleToUseHasDoneToItForAll()
        {
            var simpleClasses = new List <SimpleClass>();
            Action <MyClass, SimpleClass> action = (x, y) => x.Add(y);


            {
                operable.ObjectBuilder.Returns(objectBuilder);
                objectBuilder.DoMultiple(action, simpleClasses).Returns(objectBuilder);
            }

            OperableExtensions.DoForEach((IOperable <MyClass>)operable, action, simpleClasses);
        }