public CreditControllerTest()
        {
            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 CreditBusinessTest(mapper, configuration);
            _controller = new CreditController(_service);
        }
 public CreditController(ICreditBusiness creditBusiness)
 {
     _creditBusiness = creditBusiness;
 }