Пример #1
0
        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);
        }
Пример #2
0
        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);
        }
Пример #4
0
 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>();
 }
Пример #8
0
 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>();
 }
Пример #11
0
 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()
 {
     generator = new UniqueRandomGenerator();
 }
Пример #16
0
 public void SetUp()
 {
     constraint            = Substitute.For <IConstraint>();
     uniqueRandomGenerator = Substitute.For <IUniqueRandomGenerator>();
 }