public void Remove_ExistingGuidPassed_RemovesOneItem() { // Arrange var existingID = _list[0].Id; // Act var okResponse = _controller.Delete(existingID); // Assert Assert.Equal(19, _service.Select().Count); }
public IActionResult Get() { var list = _provider.Select().Items.ToList(); if (list == null || list.Count == 0) { return(NotFound()); } return(Ok(list)); }
private List <UserEntity> GetListOfUsers(IBaseEntityDAL <UserEntity> service) { var list = service.Select(); return(ConvertPaginateToList(list)); }