| "campaignId": null, | "campaignId": null, | ||||
| "createdAccountId": null, | "createdAccountId": null, | ||||
| "createdContactId": null, | "createdContactId": null, | ||||
| "createdOpportunityId": null | |||||
| "createdOpportunityId": null, | |||||
| "avatarName": "speed-icon.jpg", | |||||
| "avatarId": "5959bdaa7b7714a12" | |||||
| }` | }` | ||||
| r := crmdLead{} | r := crmdLead{} | ||||
| AssertEqual(t, r.AccountName, "", "") | AssertEqual(t, r.AccountName, "", "") | ||||
| AssertEqual(t, r.Password, "abcdefg", "") | AssertEqual(t, r.Password, "abcdefg", "") | ||||
| AssertEqual(t, r.WechatHitxyID, "the user id obtained from wechat public account", "") | AssertEqual(t, r.WechatHitxyID, "the user id obtained from wechat public account", "") | ||||
| AssertEqual(t, r.Verifier[0], "231823091", "") | |||||
| AssertEqual(t, r.Verifier[1], "adkdaifaskfsafsa", "") | |||||
| AssertEqual(t, r.Verifier[2], "394kfdjafdsa", "") | |||||
| AssertEqual(t, r.Verifier[3], "39410498321041", "") | |||||
| AssertEqual(t, r.OpportunityAmountCurrency, "", "") | AssertEqual(t, r.OpportunityAmountCurrency, "", "") | ||||
| AssertEqual(t, r.OpportunityAmountConverted, 0, "") | AssertEqual(t, r.OpportunityAmountConverted, 0, "") | ||||
| AssertEqual(t, r.CreatedByID, "1", "") | AssertEqual(t, r.CreatedByID, "1", "") | ||||
| AssertEqual(t, r.CreatedAccountID, "", "") | AssertEqual(t, r.CreatedAccountID, "", "") | ||||
| AssertEqual(t, r.CreatedContactID, "", "") | AssertEqual(t, r.CreatedContactID, "", "") | ||||
| AssertEqual(t, r.CreatedOpportunityID, "", "") | AssertEqual(t, r.CreatedOpportunityID, "", "") | ||||
| AssertEqual(t, r.AvatarID, "5959bdaa7b7714a12", "") | |||||
| AssertEqual(t, r.AvatarName, "speed-icon.jpg", "") | |||||
| } | } | ||||
| "createdContactName": null, | "createdContactName": null, | ||||
| "createdOpportunityId": null, | "createdOpportunityId": null, | ||||
| "createdOpportunityName": null, | "createdOpportunityName": null, | ||||
| "imagesIds": [], | |||||
| "imagesNames": {}, | |||||
| "avatarName": "speed-icon.jpg", | |||||
| "avatarId": "5959bdaa7b7714a12", | |||||
| "isFollowed": true, | "isFollowed": true, | ||||
| "followersIds": [ | "followersIds": [ | ||||
| "1" | "1" | ||||
| AssertEqual(t, r.AccountName, "", "") | AssertEqual(t, r.AccountName, "", "") | ||||
| AssertEqual(t, r.Password, "abcdefg", "") | AssertEqual(t, r.Password, "abcdefg", "") | ||||
| AssertEqual(t, r.WechatHitxyID, "the user id obtained from wechat public account", "") | AssertEqual(t, r.WechatHitxyID, "the user id obtained from wechat public account", "") | ||||
| AssertEqual(t, r.Verifier[0], "231823091", "") | |||||
| AssertEqual(t, r.Verifier[1], "adkdaifaskfsafsa", "") | |||||
| AssertEqual(t, r.Verifier[2], "394kfdjafdsa", "") | |||||
| AssertEqual(t, r.Verifier[3], "39410498321041", "") | |||||
| AssertEqual(t, r.OpportunityAmountCurrency, "AUD", "") | AssertEqual(t, r.OpportunityAmountCurrency, "AUD", "") | ||||
| AssertEqual(t, r.OpportunityAmountConverted, 120, "") | AssertEqual(t, r.OpportunityAmountConverted, 120, "") | ||||
| AssertEqual(t, r.CreatedByID, "1", "") | AssertEqual(t, r.CreatedByID, "1", "") | ||||
| AssertEqual(t, r.PhoneNumberData[1].Primary, false, "") | AssertEqual(t, r.PhoneNumberData[1].Primary, false, "") | ||||
| AssertEqual(t, r.PhoneNumberData[1].Type, "Mobile", "") | AssertEqual(t, r.PhoneNumberData[1].Type, "Mobile", "") | ||||
| AssertEqual(t, r.AvatarID, "5959bdaa7b7714a12", "") | |||||
| AssertEqual(t, r.AvatarName, "speed-icon.jpg", "") | |||||
| } | } | ||||
| func TestSearchResult(t *testing.T) { | func TestSearchResult(t *testing.T) { |