public QuotaControllerTest() { var mockMapper = new MapperConfiguration(cfg => { cfg.AddProfile(new MappingProfile()); }); var mapper = mockMapper.CreateMapper(); var configuration = new ConfigurationBuilder() .SetBasePath(Directory.GetCurrentDirectory()) .AddJsonFile("appsettings.json") .Build(); _service = new QuotaBusinessTest(mapper, configuration); _controller = new QuotaController(_service); }
public QuotaController(IQuotaBusiness quotaBusiness) { _quotaBusiness = quotaBusiness; }