How to deserialize C# async OkResult from controller that uses mongodb
I’m trying to create xUnit using mock tests for my api that uses DataAccess layer for mongodb. But for some reason it just doesn’t parse okResult to Json or Bson. I definitely know that there is 2 values that I need from debugger: My model is: namespace DataAccess.Models; [BsonIgnoreExtraElements] public class CyberGood { [BsonId] [BsonElement("id")]… Read More How to deserialize C# async OkResult from controller that uses mongodb