public IManufacturer ToDomain(Entities.Manufacturer source)
        {
            if (source is null)
            {
                throw new ArgumentNullException(nameof(source));
            }

            return(manufacturerFactory.Create(
                       new ManufacturerId(source.Id),
                       source.Name,
                       source.Deleted));
        }
        public async Task <bool> HandleAsync(CreateManufacturerCommand command, CancellationToken cancellationToken)
        {
            if (command is null)
            {
                throw new ArgumentNullException(nameof(command));
            }

            var model = manufacturerFactory.Create(new ManufacturerId(0), command.Name, false);
            await manufacturerRepository.StoreAsync(model, cancellationToken);

            return(true);
        }