public async Task UpdateWebsite(string id, UpdateOrganizationWebsiteDto updateWebsite)
 {
     var command = new ChangeOrganizationWebsiteCommand(
         new Guid(id),
         updateWebsite.Website,
         updateWebsite.ChangeDate,
         updateWebsite.ChangedBy
         );
     await _bus.Send(command);
 }
Ejemplo n.º 2
0
        public void Instansiate_Success(Guid id, string vatNumber, DateTime changeDate, string changedBy)
        {
            ChangeOrganizationWebsiteCommand command = new ChangeOrganizationWebsiteCommand(
                id,
                vatNumber,
                changeDate,
                changedBy
                );

            command.Should().BeOfType <ChangeOrganizationWebsiteCommand>();
        }
        public async Task <Guid> Handle(ChangeOrganizationWebsiteRequest request, CancellationToken cancellationToken)
        {
            var command = new ChangeOrganizationWebsiteCommand(
                new Guid(request.Id),
                request.Website,
                request.ChangeDate,
                request.ChangedBy
                );
            await _bus.Send(command);

            return(await Task.FromResult(Guid.Empty));
        }