public async Task It_Should_Delete_Guide() { // arrange var guide = await _persistence.CreateAsync(null, TestModel.CreateGuide()); // act var deletedGuide = await _persistence.DeleteByIdAsync(null, guide.Id); var result = await _persistence.GetByIdAsync(null, guide.Id); // assert TestModel.AssertEqual(guide, deletedGuide); Assert.Null(result); }
public async Task <GuideV1> GetGuideByIdAsync(string correlationId, string id) { return(await _persistence.GetByIdAsync(correlationId, id)); }