public async Task ActiveMembershipPaymentTest() { try { var controller = new PaymentController(); Payment payment = new Payment { PaymentOptionId = 2, IsPaid = true, Status = 'P', PaidDate = DateTime.Now, PaidAmount = 200 }; MemberShip memberShip = new MemberShip { Name = "Test", Email = "*****@*****.**", ActiveDate = DateTime.Now, DeactiveDate = DateTime.Now.AddMonths(1), IsActive = true }; var result = await controller.ActiveMembershipPayment(payment, memberShip); Assert.Equal(result.Value, true); Assert.NotEqual(result.Value, true); } catch (Exception ex) { Assert.NotNull(ex); } }