public DeleteWorkoutCommandValidator(SebastianDbContext db) { _db = db; RuleFor(x => x.WorkoutId) .NotEmpty() .NotNull() .WithMessage("Workout Id should not be empty.") .Must(Exist) .WithMessage("A workout does not exist with workout id"); }
public DeleteWorkoutCommandHandler(SebastianDbContext db) { _db = db; }
public PatchWorkoutCommandHandler(SebastianDbContext db) { _db = db; }
public DeleteWorkoutController(IMediator mediator, SebastianDbContext db) { _mediator = mediator; _db = db; }
public GetWorkoutsQueryHandler(SebastianDbContext db) { _db = db; }