Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace WebApp.Mocks
- {
- public class MockWebAppContext : IWebAppContext
- {
- public MockWebAppContext()
- {
- Table1 = new MockModel1Set();
- Table2 = new MockModel2Set();
- }
- public IDbSet<WebApp.Models.Model1> Table1 { get; set; }
- public IDbSet<WebApp.Models.Model2> Table2 { get; set; }
- public int SaveChanges()
- {
- return 0;
- }
- public DbEntityEntry Entry(object entity)
- {
- return (DbEntityEntry)entity;
- }
- }
- }
Add Comment
Please, Sign In to add comment