示例#1
0
        /// <summary>
        /// GetFakeCustomerAccountDto - returns fake CustomerAccountDto object
        /// </summary>
        /// <param name="firstName"></param>
        /// <param name="lastName"></param>
        /// <param name="subscriberID"></param>
        /// <param name="fakeBillingAccountIdDto"></param>
        /// <param name="fakeCustomerAccountIdDto"></param>
        /// <returns></returns>
        public CustomerAccountDto GetFakeCustomerAccountDto(string firstName, string lastName, string subscriberID, BillingAccountIdDto fakeBillingAccountIdDto, CustomerAccountIdDto fakeCustomerAccountIdDto)
        {
            var fakeIndividualName = new IndividualNameDto()
            {
                GivenNames = firstName,
                FamilyNames = lastName
            };

            var fakeIndividualDto = new IndividualDto()
            {
                IndividualName = fakeIndividualName
            };

            var fakeCustomerDto = new CustomerDto()
            {
                Individual = fakeIndividualDto
            };

            var fakeCustomerAccountDto = new CustomerAccountDto()
            {
                AccountID = subscriberID,
                BillingAccountId = fakeBillingAccountIdDto,
                CustomerAccountId = fakeCustomerAccountIdDto,
                Customer = fakeCustomerDto
            };

            return fakeCustomerAccountDto;
        }
示例#2
0
        /// <summary>
        /// GetFakeCustomerAccountIdDto - returns fake CustomerAccountIdDto object
        /// </summary>
        /// <param name="subscriberID"></param>
        /// <param name="fakePhoneNumberAsIdDto"></param>
        /// <returns></returns>
        public CustomerAccountIdDto GetFakeCustomerAccountIdDto(string subscriberID, PhoneNumberAsIdDto fakePhoneNumberAsIdDto)
        {
            var fakeCustomerAccountIdDto = new CustomerAccountIdDto()
            {
                UniversalServiceId = subscriberID,
                PhoneNumberAsId = fakePhoneNumberAsIdDto
            };

            return fakeCustomerAccountIdDto;
        }