/// <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>(); }
/// <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>(); }