/// <summary> /// Standard Constructor which initializes instance of DbContext class. /// </summary> public SmartDevicesController(IDbOperative context) { _context = context; }
public void SetUp() { _mongoConfig = new DbContext(); _context = new DbOperativeMethods(_mongoConfig); _controller = new SmartDevicesController(_context); }