예제 #1
0
        public async Task GetEntityByIdReturnsNullIfEntityDoesntExist()
        {
            var response = await _classUnderTest.GetEntityById(123).ConfigureAwait(false);

            response.Should().BeNull();
            _logger.VerifyExact(LogLevel.Debug, $"Calling IDynamoDBContext.LoadAsync for id parameter 123", Times.Once());
        }
예제 #2
0
        public void GetEntityByIdReturnsNullIfEntityDoesntExist()
        {
            var response = _classUnderTest.GetEntityById(123);

            response.Should().BeNull();
        }