示例#1
0
 public void PerformRequestToTheProductEndpoint()
 {
     this.SetupAndAssertControllerAllRecords(
         () => this._controller.Product(),
         dataService => dataService.GetProducts(),
         StubData.GetAllProducts());
 }
示例#2
0
 public void PerformRequestToTheProductEndpointWithIdentifier(string identifier)
 {
     this.SetupAndAssertControllerSingleRecord(
         identifier,
         id => this._controller.ProductById(id),
         dataService => dataService.GetProducts(),
         StubData.GetAllProducts());
 }