public ProductsUpdateShould() { repository = new Mock <IProductRepository>(); MapperConfiguration mapperConfiguration = new MapperConfiguration(cfg => { cfg.AddProfiles(new List <Profile>() { new ProductProfile() }); }); mapper = new Mapper(mapperConfiguration); updateManager = new ProductsUpdateManager(repository.Object, mapper); }
public ProductsPutController( ProductsUpdateManager updateManager) { this.updateManager = updateManager; }