Mongodb – Fake IMongoQueryable with FakeItEasy
I'm developing an API which communicates with MongoDB and I need to create some statistics from one collection. I have the following service: public class BoxService : IBoxService { private readonly IMongoCollection<Box> _boxCollection; public BoxService(IOptions<DbSettings> dbSettings, IMongoClient mongoClient) { var…