Episode 2 why IMongoRepository instead of inject MongoRepository?


#1

Why you are using IMongoRepository instead of inject MongoRepository in DiscountsRepository? It’s only for unit testing?