Using
Our main mocking library for unit tests. It lets you isolate the code under test from its dependencies: repositories, external services, the event bus.
var repo = new Mock<IOrderRepository>();
repo.Setup(r => r.GetById(It.IsAny<int>())).ReturnsAsync(order);
Without it, TDD in a layered architecture would be considerably heavier going.