Exemple #1
0
 public void Cleanup()
 {
     if (repository != null)
     {
         repository = null;
     }
 }
 public VolunteersRepository(VolunteersDbCotext dbContext)
 {
     Guard.ArgumentIsNull <ArgumentNullException>(dbContext, nameof(dbContext));
     _dbContext  = dbContext;
     _repository = new BaseEntityFrameworkRepository <Guid, Volunteer>(dbContext);
 }
Exemple #3
0
 public void Setup()
 {
     PrepareSet();
     PrepareContext();
     repository = new TestRespository(mockContext.Object);
 }