public void It_should_call_callback_on_EndAsyncProcess() { var apc = new ApcTest(); var wasCalled = false; apc.EndAsyncProcess(new RemoraOperation(), new ComponentDefinition(), () => { wasCalled = true; }); Assert.That(wasCalled); }
public void It_should_call_callback_with_true_on_BeginAsyncProcess() { var apc = new ApcTest(); var wasCalled = false; apc.BeginAsyncProcess(new RemoraOperation(), new ComponentDefinition(), (b) => { Assert.That(b); wasCalled = true; }); Assert.That(wasCalled); }