public async Task get_current_should_return_chosen_payment_claim_threshold() { await _providerThresholdsService.SetPaymentClaimAsync(7000000000000000); var paymentClaimThreshold = await _providerThresholdsService.GetCurrentPaymentClaimAsync(); paymentClaimThreshold.Should().Be(_config.PaymentClaimThreshold); await _configManager.Received().GetAsync(ConfigId); }
public async Task given_unpaid_value_greater_than_claim_payment_policy_it_should_be_possible_to_send_claim() { await _providerThresholdsService.SetPaymentClaimAsync(_paymentClaimThreshold); _consumerUnpaidUnits = 10001; var policies = CreatePolicies(); var result = await policies.CanClaimPayment(_consumerUnpaidUnits, _unitPrice); result.Should().BeTrue(); }