For Unit Tests, you can use XafariTest class which is in the Xafari.TestUtils assembly. How to use it is shown in the attached sapmple. See XafariBagTest and XafariTestBusinessOperation test in UnitProject.
Feel free to contact us if you need further assistance or have additional questions.
Regards, Mariya On behalf of Xafari Client Services Team