Example #1
0
        protected override void ExecuteInContext(Ncqrs.Domain.IUnitOfWorkContext context, CreateInvoice command)
        {
            string   invoiceNumber = GenerateInvoiceNumber(command.OwnerId);
            Customer customer      = GetCustomer(command.CustomerId);
            Currency baseCurrency  = GetOrganizationBaseCurrency(command.OwnerId);

            new Invoice(command.InvoiceId, invoiceNumber, customer, baseCurrency, command.PONumber, command.OwnerId, command.UserName);
            context.Accept();
        }
Example #2
0
        protected override void ExecuteInContext(Ncqrs.Domain.IUnitOfWorkContext context, CommandCreateJunk command)
        {
            var x = new PhysicalObject(command.Name);

            context.Accept();
        }