Bank.Tests.AccountTests.CreateNewForCustomer_ZeroOrNegativeCustomerId_ShouldThrowArgumentException C# (CSharp) Method

CreateNewForCustomer_ZeroOrNegativeCustomerId_ShouldThrowArgumentException() private method

        public void CreateNewForCustomer_ZeroOrNegativeCustomerId_ShouldThrowArgumentException()
        {
            //Arrange
            int invalidCustomerId = 1 - Random.Next(1, int.MaxValue);
            string accountNumber = Guid.NewGuid().ToString();

            //Act + Assert
            Assert.That(() => Account.CreateNewForCustomer(invalidCustomerId, accountNumber, AccountType.PaymentAccount), Throws.ArgumentException);
        }