public DatabaseFixture() { var options = new DbContextOptionsBuilder <EnkiGroupContext>(); options.UseSqlServer(ConnectionString); Context = new EnkiGroupContext(options.Options); Context.Database.EnsureDeleted(); Context.Database.EnsureCreated(); Mapper = GetMapper(); }
public RecadoRepositorioTests(DatabaseFixture fixture) { _ctx = fixture.Context; _transaction = _ctx.Database.BeginTransaction(); _sut = new RecadoRepositorio(fixture.Context, fixture.Mapper); }