Exemplo n.º 1
0
 public void PerformRequestToTheSubstanceEndpoint()
 {
     this.SetupAndAssertControllerAllRecords(
         () => this._controller.Substance(),
         dataService => dataService.GetSubstances(),
         StubData.GetAllSubstances());
 }
Exemplo n.º 2
0
 public void PerformRequestToTheSubstanceEndpointWithIdentifier(string identifier)
 {
     this.SetupAndAssertControllerSingleRecord(
         identifier,
         id => this._controller.SubstanceById(id),
         dataService => dataService.GetSubstances(),
         StubData.GetAllSubstances());
 }