Exemple #1
0
        public void DeleteCustomerReviewsTest()
        {
            // Act
            _customerReviewService.DeleteCustomerReviews(new string[] { });

            // Assert
            _customerReviewRepoMock.Verify(c => c().DeleteCustomerReviews(It.IsAny <string[]>()), Times.Once);
            _customerReviewRepoMock.Verify(c => c().UnitOfWork.Commit(), Times.Once);
        }
Exemple #2
0
 public IHttpActionResult Delete([FromUri] string[] ids)
 {
     _customerReviewService.DeleteCustomerReviews(ids);
     return(StatusCode(HttpStatusCode.NoContent));
 }
Exemple #3
0
 public IHttpActionResult Delete(string id)
 {
     _customerReviewService.DeleteCustomerReviews(id);
     return(StatusCode(HttpStatusCode.NoContent));
 }