2

Here's what I'm trying to do:

I have a class A and an interface B. A calls B to update A's property someProperty.

interface B { IAsyncResult BeginSetProperty(string str, AsyncCallback callback); bool EndSetProperty(IAsyncResult result); } 

A calls B with b.BeginSetProperty(str, someCallback) where someCallback calls SomeProperty = b.EndSetProperty(result).

How do I stub B so that someProperty will be set?

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.