Hi,
I am using the Fake DB context for unit testing.
The problem I am facing is that I am not able to use the navigation properties, i.e.
I have two tables ParentTable and ChildTable.
ChildTable (ParentTableId) has foreign key relation to ParentTable (Id)
When I am trying to unit test my code saying
fakeDbContext.ChildTables.Include(c => c.ParentTable).ToList() returns null even though data is populated.
Can you please help me on this.
I am using the Fake DB context for unit testing.
The problem I am facing is that I am not able to use the navigation properties, i.e.
I have two tables ParentTable and ChildTable.
ChildTable (ParentTableId) has foreign key relation to ParentTable (Id)
When I am trying to unit test my code saying
fakeDbContext.ChildTables.Include(c => c.ParentTable).ToList() returns null even though data is populated.
Can you please help me on this.