Example #1
0
 public UpdateTests()
 {
     this.context          = new MockMediaStackContext();
     this.entityRepository = new Repository <Category>(this.context);
     this.entityRepository.Insert(new Category {
         ID = 1, Name = "Test Category"
     });
     this.context.SaveChanges();
 }
Example #2
0
 public DbSetPropertiesTests()
 {
     this.context = new MockMediaStackContext();
 }
Example #3
0
 public GetTests()
 {
     this.context          = new MockMediaStackContext();
     this.entityRepository = new Repository <Category>(this.context);
 }