SHARE
TWEET

Untitled

a guest Feb 17th, 2019 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. namespace WebApp.Mocks
  2. {
  3.     public class MockWebAppContext : IWebAppContext
  4.     {
  5.         public MockWebAppContext()
  6.         {
  7.             Table1 = new MockModel1Set();
  8.             Table2 = new MockModel2Set();
  9.         }
  10.  
  11.         public IDbSet<WebApp.Models.Model1> Table1 { get; set; }
  12.         public IDbSet<WebApp.Models.Model2> Table2 { get; set; }
  13.  
  14.         public int SaveChanges()
  15.         {
  16.             return 0;
  17.         }
  18.  
  19.         public DbEntityEntry Entry(object entity)
  20.         {
  21.             return (DbEntityEntry)entity;
  22.         }
  23.     }
  24. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top