Skip to content

thebrettbarlow/forcelandia-practical-di

Repository files navigation

Practical Uses of Dependency Injection

Example project that was presented at Forcelandia 2023 (slides).


This project has been organized to showcase everyday uses of Dependency Injection.

Check out the examples to learn more:

A few static utilities are used throughout this project. Find them in the force-app/main/default folder.

Development

Connect to the Dev Hub

org_alias="forcelandia-di"

sf org login web \
  --alias="${org_alias}" \
  --set-default-dev-hub

Make a scratch org

org_alias="forcelandia-di-scratch"

sf org create scratch \
  --alias="${org_alias}" \
  --definition-file=config/project-scratch-def.json \
  --duration-days=30 \
  --set-default

sf project deploy start \
  --source-dir=force-app \
  --wait=10 \
  --ignore-conflicts \
  --verbose

Run all tests

org_alias="forcelandia-di-scratch"

sf apex test run \
  --target-org="${org_alias}" \
  --wait=10 \
  --code-coverage

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages