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); }
public void Setup() { PrepareSet(); PrepareContext(); repository = new TestRespository(mockContext.Object); }