public void DeleteDoesntRemoveNewProductOption() { _repo.Setup(r => r.Get(_id1)).Returns <IProductOption>(null); _service.Delete(_id1); _repo.Verify(r => r.Get(_id1), Times.Once); _repo.Verify(r => r.Remove(_id1), Times.Never); }
public void Delete(Guid id) { _productOptionsService.Delete(id); }
public async Task <IHttpActionResult> Delete(Guid productId, Guid optionId) { await _service.Delete(productId, optionId); return(Ok()); }