Esempio n. 1
0
        public void WhenAssetCustomerAssociationRequestIsSetupWithDefaultValues()
        {
            customerAssetServiceSupport.AssociateCustomerAssetModel             = CustomerAssetServiceSteps.GetDefaultValidAssociateCustomerAssetServiceRequest();
            customerAssetServiceSupport.AssociateCustomerAssetModel.CustomerUID = dealerUID;
            customerAssetServiceSupport.AssociateCustomerAssetModel.AssetUID    = AssetServiceSteps.assetServiceSupport.CreateAssetModel.AssetUID;
            customerAssetServiceSupport.PostValidCustomerAssetAssociateRequestToService();

            customerAssetServiceSupport.AssociateCustomerAssetModel             = CustomerAssetServiceSteps.GetDefaultValidAssociateCustomerAssetServiceRequest();
            customerAssetServiceSupport.AssociateCustomerAssetModel.CustomerUID = customerUID;
            customerAssetServiceSupport.AssociateCustomerAssetModel.AssetUID    = AssetServiceSteps.assetServiceSupport.CreateAssetModel.AssetUID;
        }
Esempio n. 2
0
        public void WhenAssetCustomerAssociationRequestIsSetupForAssetAndDeviceVerification()
        {
            //first Dealer first Asset association
            customerAssetServiceSupport.AssociateCustomerAssetModel             = CustomerAssetServiceSteps.GetDefaultValidAssociateCustomerAssetServiceRequest();
            customerAssetServiceSupport.AssociateCustomerAssetModel.CustomerUID = assetDetailsServiceSupport.FirstDealerModel.CustomerUID;
            customerAssetServiceSupport.AssociateCustomerAssetModel.AssetUID    = assetDetailsServiceSupport.FirstAssetModel.AssetUID;
            customerAssetServiceSupport.PostValidCustomerAssetAssociateRequestToService();

            //first Customer first Asset association
            customerAssetServiceSupport.AssociateCustomerAssetModel             = CustomerAssetServiceSteps.GetDefaultValidAssociateCustomerAssetServiceRequest();
            customerAssetServiceSupport.AssociateCustomerAssetModel.CustomerUID = assetDetailsServiceSupport.FirstCustomerModel.CustomerUID;;
            customerAssetServiceSupport.AssociateCustomerAssetModel.AssetUID    = assetDetailsServiceSupport.FirstAssetModel.AssetUID;
            customerAssetServiceSupport.PostValidCustomerAssetAssociateRequestToService();

            //second Dealer second Asset association
            customerAssetServiceSupport.AssociateCustomerAssetModel             = CustomerAssetServiceSteps.GetDefaultValidAssociateCustomerAssetServiceRequest();
            customerAssetServiceSupport.AssociateCustomerAssetModel.CustomerUID = dealerUID;
            customerAssetServiceSupport.AssociateCustomerAssetModel.AssetUID    = AssetServiceSteps.assetServiceSupport.CreateAssetModel.AssetUID;
            customerAssetServiceSupport.PostValidCustomerAssetAssociateRequestToService();
            //second customer second Asset association
            customerAssetServiceSupport.AssociateCustomerAssetModel             = CustomerAssetServiceSteps.GetDefaultValidAssociateCustomerAssetServiceRequest();
            customerAssetServiceSupport.AssociateCustomerAssetModel.CustomerUID = customerUID;
            customerAssetServiceSupport.AssociateCustomerAssetModel.AssetUID    = AssetServiceSteps.assetServiceSupport.CreateAssetModel.AssetUID;
        }
Esempio n. 3
0
 public void CreateCustomerAssetRelationship(Guid customerUID)
 {
     customerAssetServiceSupport.AssociateCustomerAssetModel             = CustomerAssetServiceSteps.GetDefaultValidAssociateCustomerAssetServiceRequest();
     customerAssetServiceSupport.AssociateCustomerAssetModel.CustomerUID = customerUID;
     customerAssetServiceSupport.PostValidCustomerAssetAssociateRequestToService();
 }
Esempio n. 4
0
        public void WhenAssetCustomerAssociationRequestIsSetupForAssetWith(string associationType)
        {
            if (associationType == "Dealer")
            {
                customerAssetServiceSupport.AssociateCustomerAssetModel             = CustomerAssetServiceSteps.GetDefaultValidAssociateCustomerAssetServiceRequest();
                customerAssetServiceSupport.AssociateCustomerAssetModel.CustomerUID = dealerUID;
                customerAssetServiceSupport.AssociateCustomerAssetModel.AssetUID    = AssetServiceSteps.assetServiceSupport.CreateAssetModel.AssetUID;
            }
            else if (associationType == "Customer")
            {
                customerAssetServiceSupport.AssociateCustomerAssetModel             = CustomerAssetServiceSteps.GetDefaultValidAssociateCustomerAssetServiceRequest();
                customerAssetServiceSupport.AssociateCustomerAssetModel.CustomerUID = customerUID;
                customerAssetServiceSupport.AssociateCustomerAssetModel.AssetUID    = AssetServiceSteps.assetServiceSupport.CreateAssetModel.AssetUID;
            }
            else if (associationType == "CustomerDealer")
            {
                customerAssetServiceSupport.AssociateCustomerAssetModel             = CustomerAssetServiceSteps.GetDefaultValidAssociateCustomerAssetServiceRequest();
                customerAssetServiceSupport.AssociateCustomerAssetModel.CustomerUID = dealerUID;
                customerAssetServiceSupport.AssociateCustomerAssetModel.AssetUID    = AssetServiceSteps.assetServiceSupport.CreateAssetModel.AssetUID;
                customerAssetServiceSupport.PostValidCustomerAssetAssociateRequestToService();

                customerAssetServiceSupport.AssociateCustomerAssetModel             = CustomerAssetServiceSteps.GetDefaultValidAssociateCustomerAssetServiceRequest();
                customerAssetServiceSupport.AssociateCustomerAssetModel.CustomerUID = customerUID;
                customerAssetServiceSupport.AssociateCustomerAssetModel.AssetUID    = AssetServiceSteps.assetServiceSupport.CreateAssetModel.AssetUID;
            }
            else if (associationType == "CustomerWithSameDealer")
            {
                customerAssetServiceSupport.AssociateCustomerAssetModel             = CustomerAssetServiceSteps.GetDefaultValidAssociateCustomerAssetServiceRequest();
                customerAssetServiceSupport.AssociateCustomerAssetModel.CustomerUID = dealerUID;
                customerAssetServiceSupport.AssociateCustomerAssetModel.AssetUID    = oldAssetUID;
                customerAssetServiceSupport.PostValidCustomerAssetAssociateRequestToService();

                customerAssetServiceSupport.AssociateCustomerAssetModel             = CustomerAssetServiceSteps.GetDefaultValidAssociateCustomerAssetServiceRequest();
                customerAssetServiceSupport.AssociateCustomerAssetModel.CustomerUID = oldCustomerUID;
                customerAssetServiceSupport.AssociateCustomerAssetModel.AssetUID    = oldAssetUID;
                customerAssetServiceSupport.PostValidCustomerAssetAssociateRequestToService();

                customerAssetServiceSupport.AssociateCustomerAssetModel             = CustomerAssetServiceSteps.GetDefaultValidAssociateCustomerAssetServiceRequest();
                customerAssetServiceSupport.AssociateCustomerAssetModel.CustomerUID = dealerUID;
                customerAssetServiceSupport.AssociateCustomerAssetModel.AssetUID    = AssetServiceSteps.assetServiceSupport.CreateAssetModel.AssetUID;
                customerAssetServiceSupport.PostValidCustomerAssetAssociateRequestToService();

                customerAssetServiceSupport.AssociateCustomerAssetModel             = CustomerAssetServiceSteps.GetDefaultValidAssociateCustomerAssetServiceRequest();
                customerAssetServiceSupport.AssociateCustomerAssetModel.CustomerUID = customerUID;
                customerAssetServiceSupport.AssociateCustomerAssetModel.AssetUID    = AssetServiceSteps.assetServiceSupport.CreateAssetModel.AssetUID;
            }
        }