Hi
my tests fail
code to test
DHP_Document documentObject = ctx.DHP_Document.Single(d => d.DocumentID == document.DocumentID);
documentObject = null
How I can mock DHP_Document which is entity table in database ?
i have mocked ctx.DHP_Document
Mock.Arrange(() => CustomerEntities.DHP_Document).ReturnsCollection(CreateDHP_DocumentList());
my tests fail
code to test
DHP_Document documentObject = ctx.DHP_Document.Single(d => d.DocumentID == document.DocumentID);
documentObject = null
How I can mock DHP_Document which is entity table in database ?
i have mocked ctx.DHP_Document
Mock.Arrange(() => CustomerEntities.DHP_Document).ReturnsCollection(CreateDHP_DocumentList());