예제 #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 DisposeAllObjects()
 {
     _context          = null;
     unitOfWork        = null;
     associatesService = null;
     associatesService = null;
 }
예제 #3
0
 public void SetUp()
 {
     _context              = new SkillTrackerEntities();
     _unitOfWork           = new UnitOfWork(_context);
     _associatesRepository = new AssociatesRepository(_context);
     _associatesService    = new AssociatesService(_unitOfWork, _associatesRepository);
     _logManager           = new LogManager();
 }
예제 #4
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();
     }
 }
예제 #6
0
 public AssociateController(IAssociatesService associatesService, ILogManager logManager)
 {
     _associatesService = associatesService;
     _logManager        = logManager;
 }