public ProductsGetController(
     ProductsSearchAllManager searchAllManager,
     ProductsSearchByIdManager searchByIdManager)
 {
     this.searchAllManager  = searchAllManager;
     this.searchByIdManager = searchByIdManager;
 }
예제 #2
0
        public ProductsSearchByIdShould()
        {
            repository = new Mock <IProductRepository>();

            MapperConfiguration mapperConfiguration = new MapperConfiguration(cfg =>
            {
                cfg.AddProfiles(new List <Profile>()
                {
                    new ProductProfile()
                });
            });

            mapper = new Mapper(mapperConfiguration);

            searchByIdManager = new ProductsSearchByIdManager(repository.Object, mapper);
        }