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