public void DeleteCasePreview() { _summariesUnitOfWork.Setup(item => item.Find <Domain.Summaries.Case.Case>(It.IsAny <Guid>(), TrackingMode.Automatic, ThrowIf.Anything)) .Returns(_case); var deletedPreview = _deleteService.DeleteCasePreview(_case.Id); deletedPreview.Should().NotBeNull(); deletedPreview.Cases.Should().HaveCount(1); }