示例#1
0
 public void Setup()
 {
     _context             = new SkillTrackerEntities();
     unitOfWork           = new UnitOfWork(_context);
     associatesRepository = new AssociatesRepository(_context);
     associatesService    = new AssociatesService(unitOfWork, associatesRepository);
 }
示例#2
0
 public void SetUp()
 {
     _context              = new SkillTrackerEntities();
     _unitOfWork           = new UnitOfWork(_context);
     _associatesRepository = new AssociatesRepository(_context);
     _associatesService    = new AssociatesService(_unitOfWork, _associatesRepository);
     _logManager           = new LogManager();
 }
示例#3
0
 public void DisposeAllObjects()
 {
     _context              = null;
     _unitOfWork           = null;
     _associatesRepository = null;
     _associatesService    = null;
     _logManager           = null;
     if (_response != null)
     {
         _response.Dispose();
     }
 }
 public void Cleanup(BenchmarkContext context)
 {
     _context              = null;
     _unitOfWork           = null;
     _associatesRepository = null;
     _associatesService    = null;
     _logManager           = null;
     if (_response != null)
     {
         _response.Dispose();
     }
 }
 public AssociatesService(IUnitOfWork unitOfWork, IAssociatesRepository associatesRepository) : base(unitOfWork, associatesRepository)
 {
     this.unitOfWork           = unitOfWork;
     this.associatesRepository = associatesRepository;
 }
 public void DisposeAllObjects()
 {
     _context             = null;
     unitOfWork           = null;
     associatesRepository = null;
 }