public void SetupBeforeEachTest()
 {
     _context         = new MockDbContext();
     _localityService = new LocalityService(new LocalityRepository(_context));
 }
 public LocalityController(CurrentUser currentUser, LocalityService service, IMapper mapper)
     : base(mapper)
 {
     this.currentUser     = currentUser;
     this.localityService = service;
 }
Exemple #3
0
 public void SetupBeforeEachTest()
 {
     _localityRepository = new Mock <ILocalityRepository>();
     _localityService    = new LocalityService(_localityRepository.Object);
 }