Exemplo n.º 1
0
        public DbaseFieldNumberGeneratorTests(ITestOutputHelper output)
        {
            _output = output ?? throw new ArgumentNullException(nameof(output));

            _fixture = new Fixture();
            _fixture.CustomizeByteOffset();
            _fixture.CustomizeDbaseDecimalCount();
            _fixture.CustomizeDbaseFieldName();
            _fixture.CustomizeDbaseFieldLength();
            _fixture.CustomizeDbaseField();

            _fixture.CustomizeDbaseNumber();
            _fixture.CustomizeDbaseFloat();

            _fixture.CustomizeDbaseDouble();
            _fixture.CustomizeDbaseNullableDouble();
            _fixture.CustomizeDbaseSingle();
            _fixture.CustomizeDbaseNullableSingle();
            _fixture.CustomizeDbaseDecimal();
            _fixture.CustomizeDbaseNullableDecimal();
            _fixture.CustomizeDbaseInt32();
            _fixture.CustomizeDbaseNullableInt32();
            _fixture.CustomizeDbaseInt16();
            _fixture.CustomizeDbaseNullableInt16();

            _sut = new DbaseFieldNumberGenerator(new Random());
        }
 public GenerateValueVisitor(IFixture fixture)
 {
     _fixture   = fixture ?? throw new ArgumentNullException(nameof(fixture));
     _random    = new Random();
     _generator = new DbaseFieldNumberGenerator(_random);
 }