public void TestFixtureSetUp() { var container = new ObjectContainer(); container.Boot(); _commandsSent = new GetCommands().Get().ToArray(); container.HandleAll(_commandsSent); container.Dispose(); _batches = container.BatchesPersisted().ToArray(); }
public void TestFixtureSetUp() { var container = new ObjectContainer(); container.Boot(); _commandsSent = new GetCommands().Get().ToArray(); var handlers = container.GetAllHandlers(); foreach (var command in _commandsSent) { foreach (var handler in handlers.Where(h=>h.CanHandle(command.GetType()))) { handler.Handle(command); } } container.Dispose(); _batches = container.BatchesPersisted().ToArray(); }
public void TestFixtureSetUp() { var container = new ObjectContainer(); container.Boot(); _commandsSent = new GetCommands().Get().ToArray(); var handlers = container.GetAllHandlers(); foreach (var command in _commandsSent) { foreach (dynamic handler in handlers.Where(h => h.CanHandle(command.GetType()))) { handler.Handle(command); } } container.Dispose(); _batches = container.BatchesPersisted().ToArray(); }
public void TestFixtureTearDown() { _container.Dispose(); }