Skip to content

Need IBatchGet<T> interface for testing #1857

Closed
@SARAVANA1501

Description

@SARAVANA1501

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);

Metadata

Metadata

Assignees

No one assigned

    Labels

    dynamodbfeature-requestA feature should be added or improved.p1This is a high priority issuequeued

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions