private static Context PublishConsumeContext() { var list = new Dictionary<string, IExecutable> { {"publish", new SimplePublishingAction()}, {"consume", new SimpleConsumingAction()} }; IActionListProvider alp = new ActionListProviderStub(list); return new Context(alp); }
public void CtorWorks() { // Arrange IActionListProvider alp = new ActionListProviderStub(); var x = new Context(alp); // Act // Assert Assert.IsNotNull(x); }
private static Context StubContext() { var list = new Dictionary<string, IExecutable> {{"action", new ActionStub()}}; IActionListProvider alp = new ActionListProviderStub(list); return new Context(alp); }
private static Context EmptyContext() { IActionListProvider alp = new ActionListProviderStub(); return new Context(alp); }