コード例 #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();
     }
 }
コード例 #5
0
 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;
 }