Closed
Description
I would like to have following mocking, Since BatchGet<T>
is concrete class, we are unable to mock and test the functionality.
var dynamoDbContext = new Mock<IDynamoDBContext>();
dynamoDbContext.Setup(t => t.CreateBatchGet<TestModel>(It.IsAny<DynamoDBOperationConfig>()))
.Returns(new Mock<BatchGet<TestModel>>().Object);
var service = new TestService(dynamoDbContext.Object);