<commit_before>using NUnit.Framework;
using TestStack.BDDfy.Scanners.StepScanners.ExecutableAttribute.GwtAttributes;

namespace TestStack.BDDfy.Samples.Atm
{
    public class AccountHasInsufficientFund
    {
        private Card _card;
        private Atm _atm;

		// You can override step text using executable attributes
		[Given("Given the Account Balance is $10")]
        void GivenTheAccountBalanceIs10()
        {
            _card = new Card(true, 10);
        }

        void And_given_the_Card_is_valid()
        {
        }

        void AndGivenTheMachineContainsEnoughMoney()
        {
            _atm = new Atm(100);
        }

		[When("When the Account Holder requests $20")]
        void WhenTheAccountHolderRequests20()
        {
            _atm.RequestMoney(_card, 20);
        }

        void Then_the_ATM_should_not_dispense_any_Money()
        {
            Assert.AreEqual(0, _atm.DispenseValue);
        }

        void And_the_ATM_should_say_there_are_Insufficient_Funds()
        {
            Assert.AreEqual(DisplayMessage.InsufficientFunds, _atm.Message);
        }

		[AndThen("And the Account Balance should be $20")]
        void AndTheAccountBalanceShouldBe20()
        {
            Assert.AreEqual(10, _card.AccountBalance);
        }

        void And_the_Card_should_be_returned()
        {
            Assert.IsFalse(_atm.CardIsRetained);
        }

        [Test]
        public void Verify()
        {
            new AccountHasInsufficientFund().BDDfy<AccountHolderWithdrawsCash>();
        }
    }
}<commit_msg>replaced instantiation with this<commit_after>using NUnit.Framework;
using TestStack.BDDfy.Scanners.StepScanners.ExecutableAttribute.GwtAttributes;

namespace TestStack.BDDfy.Samples.Atm
{
    public class AccountHasInsufficientFund
    {
        private Card _card;
        private Atm _atm;

		// You can override step text using executable attributes
		[Given("Given the Account Balance is $10")]
        void GivenTheAccountBalanceIs10()
        {
            _card = new Card(true, 10);
        }

        void And_given_the_Card_is_valid()
        {
        }

        void AndGivenTheMachineContainsEnoughMoney()
        {
            _atm = new Atm(100);
        }

		[When("When the Account Holder requests $20")]
        void WhenTheAccountHolderRequests20()
        {
            _atm.RequestMoney(_card, 20);
        }

        void Then_the_ATM_should_not_dispense_any_Money()
        {
            Assert.AreEqual(0, _atm.DispenseValue);
        }

        void And_the_ATM_should_say_there_are_Insufficient_Funds()
        {
            Assert.AreEqual(DisplayMessage.InsufficientFunds, _atm.Message);
        }

		[AndThen("And the Account Balance should be $20")]
        void AndTheAccountBalanceShouldBe20()
        {
            Assert.AreEqual(10, _card.AccountBalance);
        }

        void And_the_Card_should_be_returned()
        {
            Assert.IsFalse(_atm.CardIsRetained);
        }

        [Test]
        public void Verify()
        {
            this.BDDfy<AccountHolderWithdrawsCash>();
        }
    }
}
{'fraction_non_alphanumeric': 0.08131655372700872, 'fraction_numerical': 0.01419812842852533, 'mean_word_length': 2.1408308004052685, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6342810', 'n_tokens_mistral': 985, 'n_tokens_neox': 909, 'n_words': 162}