public async Task GetForFirstQuarter()
        {
            var report = await _service.GetQuarterlySalesPersonCommissionReport(2019, 3);

            Assert.AreEqual(1, report.First().SalesPerson.Id);
            Assert.AreEqual(2, report.Last().SalesPerson.Id);
            Assert.AreEqual(.3875, report.First().Commission);
            Assert.AreEqual(.175, report.Last().Commission);
        }
예제 #2
0
 public async Task <ActionResult <IEnumerable <SalesPersonCommission> > > Get([FromQuery] int year, [FromQuery] int quarter)
 {
     return(Ok(await _service.GetQuarterlySalesPersonCommissionReport(year, quarter)));
 }