public RepeatExample() { this.sut = MockRepository.GenerateStub<ISimpleModel>(); this.sut.Stub(x => x.Do()).Return(1).Repeat.Once(); this.sut.Stub(x => x.Do()).Return(2).Repeat.Twice(); this.sut.Stub(x => x.Do()).Return(3).Repeat.Times(3); this.sut.Stub(x => x.Do()).Return(4).Repeat.Times(4); }
public RepeatExample() { this.sut = MockRepository.GenerateStub <ISimpleModel>(); this.sut.Stub(x => x.Do()).Return(1).Repeat.Once(); this.sut.Stub(x => x.Do()).Return(2).Repeat.Twice(); this.sut.Stub(x => x.Do()).Return(3).Repeat.Times(3); this.sut.Stub(x => x.Do()).Return(4).Repeat.Times(4); }
public LiteralExample() { this.sut = MockRepository.GenerateStub <ISimpleModel>(); this.sut.Stub(x => x.Do(1)).Return(1); this.sut.Stub(x => x.Do("Foo")).Return(2); }
public DecoratorSimpleModel(ISimpleModel decorated) { _decorated = decorated; }
public ASimpleStub() { this.sut = MockRepository.GenerateStub <ISimpleModel>(); this.sut.Stub(x => x.Do()).Return(1); }
public LiteralExample() { this.sut = MockRepository.GenerateStub<ISimpleModel>(); this.sut.Stub(x => x.Do(1)).Return(1); this.sut.Stub(x => x.Do("Foo")).Return(2); }
void Constructor(Text message, Button button, ISimpleModel simpleModel) { _message = message; _button = button; _simpleModel = simpleModel; }
public ASimpleStub() { this.sut = MockRepository.GenerateStub<ISimpleModel>(); this.sut.Stub(x => x.Do()).Return(1); }