public void UpdatePaymentMethodService_Test() { var payment = service.GetItemAsync(1).GetAwaiter().GetResult(); payment.PaymentName = "NoName"; service.UpdateItemAsync(payment).GetAwaiter().GetResult(); var updatePayment = service.GetItemAsync(1).GetAwaiter().GetResult(); Assert.AreEqual("NoName", updatePayment.PaymentName); }