1
0
mirror of https://github.com/bitwarden/server.git synced 2025-05-08 13:12:16 -05:00
2025-05-01 14:14:26 +02:00
..
2025-04-24 13:50:08 +02:00
2025-05-01 14:14:26 +02:00

Bitwarden Database Seeder

A class library for generating and inserting test data.

Project Structure

The project is organized into these main components:

Factories

Factories are helper classes for creating domain entities and populating them with realistic data. This assist in decreasing the amount of boilerplate code needed to create test data in recipes.

Recipes

Recipes are pre-defined data sets which can be run to generate and load data into the database. They often allow a allow for a few arguments to customize the data slightly. Recipes should be kept simple and focused on a single task. Default to creating more recipes rather than adding complexity to existing ones.