public void Update_Test() { ISellRepo BookData = new SellRepo(db); SellController obj = new SellController(BookData); var data = obj.Put(1, 50); var okResult = data as OkObjectResult; Assert.AreEqual(200, okResult.StatusCode); }