public async Task ReturnNoDeletedDataOnGetByUid() { // arrange // act var result = await _target.GetByUid(_expectedData[3].Uid); // assert result.Should().NotBeNull(); result.ResultStatus.Should().Be(ManagerResponseResult.NotFound); LogAssert.AssertInfo(_fakeLogger, Times.AtLeastOnce); LogAssert.AssertWarn(_fakeLogger, Times.Once); }
public async Task ReturnNoDataOnGetByUidForMissingRecord() { // arrange // act var result = await _target.GetByUid(Guid.NewGuid()); // assert result.Should().NotBeNull(); result.ResultStatus.Should().Be(ManagerResponseResult.NotFound); LogAssert.AssertInfo(_fakeLogger, Times.AtLeastOnce); LogAssert.AssertWarn(_fakeLogger, Times.Once); }