static void Main(string[] args) { Commodity.Command.Core.CommandCoreStartupAsClient cc = new CommandCoreStartupAsClient(null); Commodity.Domain.Core.StartupAsServer dc = new StartupAsServer(null); Commodity.CommandHandlers.Schemas.CreateSchemaCommandHandler ch = new CreateSchemaCommandHandler(null); SchemaNameAndCountOfProperties sncop = new SchemaNameAndCountOfProperties(); SchemaRenamed schemaRn = new SchemaRenamed(); Commodity.Serialization.Serializers.StringSerializer r = new StringSerializer(); // kernel for binding var kernel = new StandardKernel(); kernel.BindStartUp <IStartUpAsServer>(); var allServers = kernel.GetAll <IStartUpAsServer>(); foreach (var server in allServers) { server.Start(); } Console.WriteLine("Wait here. Press a <key> to exit."); Console.ReadLine(); }
public void Initialize() { _commandHandler = new CreateSchemaCommandHandler(AggregateRepository); }
public CreateSchemaTests() { _handler = new CreateSchemaCommandHandler(_shopMock.Object); }