public void ShouldBeAbleToUseWithToSetPrivateProperties() { using (mocks.Record()) objectBuilder.Expect(x => x.Do(new Action <MyClass>(a => a.StringOne = ""))).IgnoreArguments().Return(objectBuilder); using (mocks.Playback()) SingleObjectBuilderExtensions.With(objectBuilder, propertyExpression, 100); }
public void ShouldBeAbleToUseWith() { using (mocks.Record()) objectBuilder.Expect(x => x.With(func)).Return(objectBuilder); using (mocks.Playback()) SingleObjectBuilderExtensions.With(objectBuilder, func); }
public void ShouldBeAbleToUseWithToSetPrivateProperties() { objectBuilder.Do(new Action <MyClass>(a => a.StringOne = "")).Returns(objectBuilder); SingleObjectBuilderExtensions.With(objectBuilder, propertyExpression, 100); }
public void ShouldBeAbleToUseWith() { objectBuilder.With(func).Returns(objectBuilder); SingleObjectBuilderExtensions.With(objectBuilder, func); }