public void SetUp() { listBuilderImpl = MockRepository.GenerateStub<IListBuilderImpl<MyClass>>(); objectBuilder = MockRepository.GenerateStub<IObjectBuilder<MyClass>>(); uniqueRandomGenerator = MockRepository.GenerateMock<IUniqueRandomGenerator>(); declaration = new RandomDeclaration<MyClass>(listBuilderImpl, objectBuilder, uniqueRandomGenerator, amount, start, end); }
public RandomDeclarationTests() { listBuilderImpl = Substitute.For <IListBuilderImpl <MyClass> >(); objectBuilder = Substitute.For <IObjectBuilder <MyClass> >(); uniqueRandomGenerator = Substitute.For <IUniqueRandomGenerator>(); declaration = new RandomDeclaration <MyClass>(listBuilderImpl, objectBuilder, uniqueRandomGenerator, amount, start, end); }
public void SetUp() { listBuilderImpl = MockRepository.GenerateStub <IListBuilderImpl <MyClass> >(); objectBuilder = MockRepository.GenerateStub <IObjectBuilder <MyClass> >(); uniqueRandomGenerator = MockRepository.GenerateMock <IUniqueRandomGenerator>(); declaration = new RandomDeclaration <MyClass>(listBuilderImpl, objectBuilder, uniqueRandomGenerator, amount, start, end); }
public void SetUp() { uniqueRandomGenerator = Substitute.For <IUniqueRandomGenerator>(); }
public void SetUp() { mocks = new MockRepository(); uniqueRandomGenerator = mocks.StrictMock <IUniqueRandomGenerator>(); }
public UniqueRandomGeneratorTests() { generator = new UniqueRandomGenerator(); }
public UniqueRandomPickerMockedTests() { constraint = Substitute.For <IConstraint>(); uniqueRandomGenerator = Substitute.For <IUniqueRandomGenerator>(); }
public UpToConstraintTests() { uniqueRandomGenerator = Substitute.For <IUniqueRandomGenerator>(); }
public void SetUp() { mocks = new MockRepository(); uniqueRandomGenerator = mocks.StrictMock<IUniqueRandomGenerator>(); }
public void SetUp() { mocks = new MockRepository(); constraint = mocks.DynamicMock<IConstraint>(); uniqueRandomGenerator = mocks.DynamicMock<IUniqueRandomGenerator>(); }
public RandomDeclaration(IListBuilderImpl <T> listBuilderImpl, IObjectBuilder <T> objectBuilder, IUniqueRandomGenerator uniqueRandomGenerator, int amount, int start, int end) : base(listBuilderImpl, objectBuilder, start, end) { this.uniqueRandomGenerator = uniqueRandomGenerator; this.amount = amount; }
public void SetUp() { generator = new UniqueRandomGenerator(); }
public UniqueRandomPicker(IConstraint constraint, IUniqueRandomGenerator uniqueRandomGenerator) { this.constraint = constraint; this.uniqueRandomGenerator = uniqueRandomGenerator; }
public void SetUp() { mocks = new MockRepository(); constraint = mocks.DynamicMock <IConstraint>(); uniqueRandomGenerator = mocks.DynamicMock <IUniqueRandomGenerator>(); }
public void SetUp() { constraint = Substitute.For <IConstraint>(); uniqueRandomGenerator = Substitute.For <IUniqueRandomGenerator>(); }