public async Task Engine_ShouldReturnRiskCustomers()
        {
            var request = new RiskCustomerAsyncRequest(1);

            var response = await mediator.GetAsync(request);

            response.RiskCustomers.Count().ShouldBeGreaterThan(0);
        }
Beispiel #2
0
        public async Task <IHttpActionResult> GetRisk()
        {
            const int pageNumber = 1;

            var request  = new RiskCustomerAsyncRequest(pageNumber);
            var response = await mediator.GetAsync(request);

            return(Ok(response));
        }