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; }
public void SetupBeforeEachTest() { _localityRepository = new Mock <ILocalityRepository>(); _localityService = new LocalityService(_localityRepository.Object); }