public async Task DeleteAsync_ThrowsException_WhenNotExists() { Func <Task> action = async() => await _publisherService.DeleteAsync(Id); await action.Should().ThrowAsync <EntityNotFoundException <Publisher> >() .WithMessage($"Entity Publisher wasn't found. Id: {Id}"); }