Exemplo n.º 1
0
 public BMICalculator(ICategoryProvider categoryProvider, IMapper <Patients, string> requestMapper, IMapper <BMIResponse, IList <Response> > responseMapper)
 {
     categories     = categoryProvider.LoadCategories();
     RequestMapper  = requestMapper;
     ResponseMapper = responseMapper;
 }
Exemplo n.º 2
0
 public BMIResponse(ICategoryProvider categoryProvider, IList <Response> currentResponse)
 {
     categories = categoryProvider.LoadCategories();
     LoadResponse(currentResponse);
 }