public InvoicesCreateShould()
        {
            invoiceRepository  = new Mock <IInvoiceRepository>();
            productRepository  = new Mock <IProductRepository>();
            customerRepository = new Mock <ICustomerRepository>();

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

            mapper = new Mapper(mapperConfiguration);

            createManager = new InvoicesCreateManager(
                invoiceRepository.Object, productRepository.Object, customerRepository.Object, mapper);
        }
 public InvoicesPostController(
     InvoicesCreateManager createManager)
 {
     this.createManager = createManager;
 }