public async Task Put_UpdateDiscount() { var dis = new Discount { DiscountId = 1, Name = "Harmony Alabi", Mobile = "0238288675", Percent = 5, LocationId = 1, Date = DateTime.UtcNow, UserId = "807ba6c0-e845-4695-847e-92edca9d66db", MDate = DateTime.UtcNow, MUserId = "807ba6c0-e845-4695-847e-92edca9d66db" }; var discount = await _discountController.Put(dis, dis.DiscountId); Assert.NotNull(discount); var Result = discount as OkObjectResult; Assert.NotNull(Result); Assert.AreEqual(200, Result.StatusCode); }