public ProductsGetController( ProductsSearchAllManager searchAllManager, ProductsSearchByIdManager searchByIdManager) { this.searchAllManager = searchAllManager; this.searchByIdManager = searchByIdManager; }
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); }