public async Task <IHttpActionResult> Get(Guid clientId) { try { var response = await ClientCore.GetAsync(clientId, new[] { nameof(Client.Currency) }); return(Ok(response)); } catch (Exception e) { LogHelper.LogException <ClientController>(e); return(Ok(ResponseFactory.CreateResponse(false, ResponseCode.Error))); } }
public void GetClientTest() { var response = ClientCore.GetAsync(mClient.Id).ConfigureAwait(false).GetAwaiter().GetResult(); AssertObjects(response, mClient); }