Example #1
0
 public void PerformRequestToTheSubstanceEndpoint()
 {
     this.SetupAndAssertControllerAllRecords(
         () => this._controller.Substance(),
         dataService => dataService.GetSubstances(),
         StubData.GetAllSubstances());
 }
Example #2
0
 public void PerformRequestToTheProductEndpoint()
 {
     this.SetupAndAssertControllerAllRecords(
         () => this._controller.Product(),
         dataService => dataService.GetProducts(),
         StubData.GetAllProducts());
 }
Example #3
0
 public void PerformRequestToTheCountryEndpoint()
 {
     this.SetupAndAssertControllerAllRecords(
         () => this._controller.Countries(),
         dataService => dataService.GetCountries(),
         StubData.GetAllCountries());
 }
Example #4
0
 public void PerformRequestToThePharmaceuticalFormEndpoint()
 {
     this.SetupAndAssertControllerAllRecords(
         () => this._controller.PharmaceuticalForm(),
         dataService => dataService.GetPharmaceuticalForms(),
         StubData.GetAllPharmaceuticalForms());
 }
Example #5
0
 public void PerformRequestToTheProductEndpointWithIdentifier(string identifier)
 {
     this.SetupAndAssertControllerSingleRecord(
         identifier,
         id => this._controller.ProductById(id),
         dataService => dataService.GetProducts(),
         StubData.GetAllProducts());
 }
Example #6
0
 public void PerformRequestToThePharmaceuticalFormEndpointWithIdentifier(string identifier)
 {
     this.SetupAndAssertControllerSingleRecord(
         identifier,
         id => this._controller.PharmaceuticalFormById(id),
         dataService => dataService.GetPharmaceuticalForms(),
         StubData.GetAllPharmaceuticalForms());
 }
Example #7
0
 public void PerformRequestToTheSubstanceEndpointWithIdentifier(string identifier)
 {
     this.SetupAndAssertControllerSingleRecord(
         identifier,
         id => this._controller.SubstanceById(id),
         dataService => dataService.GetSubstances(),
         StubData.GetAllSubstances());
 }