public void AddPaymentMethodService_Test() { PaymentMethod payment = new PaymentMethod() { DecriptionPayment = "SomeText", PaymentName = "SomeName" }; bool item = service.AddItemAsync(payment).GetAwaiter().GetResult(); Assert.IsTrue(item); var count = service.GetItemsAsync().GetAwaiter().GetResult().Count(); Assert.AreEqual(3, count); }