AddContact() public method

public AddContact ( Contact contact ) : void
contact Contact
return void
        protected override void Context()
        {
            Username = "******";

            base.Context();

            CustomerService.Stub(
                x => x.UpdateCustomer(Arg<string>.Is.Equal(Username), Arg<UpdateCustomerRequest>.Is.Anything))
                .WhenCalled(x => _requestPassedToCustomerService = x.Arguments[1] as UpdateCustomerRequest);

            _updateCustomerInputModel = Builder<UpdateCustomerInputModel>.CreateNew().Build();
            _expectedRequest = new UpdateCustomerRequest
                                   {
                                       Id = _updateCustomerInputModel.CustomerId,
                                       Name = _updateCustomerInputModel.Name,
                                   };

            _expectedRequest.AddContact(new Contact
                                            {
                                                Id = _updateCustomerInputModel.ContactId,
                                                FirstName = _updateCustomerInputModel.ContactFirstName,
                                                LastName = _updateCustomerInputModel.ContactLastName,
                                                Phone = _updateCustomerInputModel.ContactPhone,
                                            });

            _expectedRequest.MailingAddress = new Address
                                                  {
                                                      Id = _updateCustomerInputModel.CustomerId,
                                                      Street = _updateCustomerInputModel.Street,
                                                      AdditionalInfo = _updateCustomerInputModel.AdditionalInfo,
                                                      City = _updateCustomerInputModel.City,
                                                      State = _updateCustomerInputModel.State,
                                                      Zipcode = _updateCustomerInputModel.Zipcode,
                                                  };
        }