示例#1
0
        /// <summary>
        /// Initializes a new instance of the  <see cref="CsvBulkRepositoryFacts"/> class.
        /// </summary>
        public CsvBulkRepositoryFacts()
        {
            this.fixture = new Fixture();

            this.outputWriter = new StringWriter(CultureInfo.CurrentCulture);

            this.target = new CsvBulkRepository <FakeEntity>(
                TestFileName,
                new CsvConfiguration(),
                f => this.outputWriter);

            this.data    = this.fixture.CreateMany <FakeEntity>();
            this.context = Substitute.For <ITaskContext>();
        }
示例#2
0
        /// <summary>
        /// Initializes a new instance of the  <see cref="CsvBulkRepositoryFacts"/> class.
        /// </summary>
        public CsvBulkRepositoryFacts()
        {
            this.fixture = new Fixture();

            this.outputWriter = new StringWriter(CultureInfo.CurrentCulture);

            this.target = new CsvBulkRepository<FakeEntity>(
                TestFileName, 
                new CsvConfiguration(),
                f => this.outputWriter);

            this.data = this.fixture.CreateMany<FakeEntity>();
            this.context = Substitute.For<ITaskContext>();
        }