コード例 #1
0
        public void DeleteAccountCharge()
        {
            var request = new AccountChargeRequest
            {
                Name          = "VIP",
                AccountNumber = "NUMBER" + new Random(DateTime.Now.Millisecond).Next(0, 5236985),
                Questions     = new[]
                {
                    new AccountChargeQuestion
                    {
                        Question = "Question?",
                        Answer   = "Answer"
                    }
                }
            };

            _sut.CreateAccountCharge(request);

            _sut.DeleteAccountCharge(request.AccountNumber);

            Assert.Throws <WebServiceException>(() => _sut.GetAccountCharge(request.AccountNumber));
        }