public GetCategoriesListQueryHandlerTest() { _mockCategoryRepository = RepositoryMock.MockCategoryRepository(); var configurationProvider = new MapperConfiguration(cfg => { cfg.AddProfile <MappingProfile>(); }); _mapper = new Mapper(configurationProvider); }