Esempio n. 1
0
 public void ShouldNotThrowAnError()
 {
     var api          = new WealthEngineApi(_apiKey, "SANDBOX", "v1");
     var response     = api.GetProfileByEmailAsync <BasicProfileMatch>("*****@*****.**", "John", "Doe").Result;
     var responseFull = api.GetProfileByEmailAsync <FullProfileMatch>("*****@*****.**", "John", "Doe").Result;
 }
Esempio n. 2
0
 public void InvalidEmail()
 {
     var api          = new WealthEngineApi(_apiKey, "SANDBOX", "v1");
     var response     = api.GetProfileByEmailAsync <BasicProfileMatch>("john@doe", "John", "Doe").Result;
     var responseFull = api.GetProfileByEmailAsync <FullProfileMatch>("john@doe", "John", "Doe").Result;
 }
 public async Task<ActionResult> ByEmailPost(string firstName, string lastName, string email)
 {
     var api = new WealthEngineApi(_apiKey, _environment, "v1");
     var response = await api.GetProfileByEmailAsync<FullProfileMatch>(email, firstName, lastName);
     return View("ApiResult", null, JObject.Parse(response.RawContent).ToString(Formatting.Indented));
 }