Esempio n. 1
0
 public void Setup()
 {
     categoriesClient    = Substitute.For <ICategoriesClient>();
     dashboardsClient    = Substitute.For <IDashboardsClient>();
     httpContextAccessor = Substitute.For <IHttpContextAccessor>();
     mapper = new Mapper(new MapperConfiguration(o => o.AddProfile <WebApiProfile>()));
 }
 public CategoriesProxyService(ICategoriesClient categoriesClient, IDashboardsClient dashboardsClient, IHttpContextAccessor httpContextAccessor, IMapper mapper)
 {
     this.categoriesClient    = categoriesClient;
     this.dashboardsClient    = dashboardsClient;
     this.httpContextAccessor = httpContextAccessor;
     this.mapper = mapper;
 }