public ProductsCreateShould() { repository = new Mock <IProductRepository>(); MapperConfiguration mapperConfiguration = new MapperConfiguration(cfg => { cfg.AddProfiles(new List <Profile>() { new ProductProfile() }); }); mapper = new Mapper(mapperConfiguration); createManager = new ProductsCreateManager(repository.Object, mapper); }
public ProductsPostController( ProductsCreateManager createManager) { this.createManager = createManager; }