Fred,
>in the following method factory is null. Can anyone help.
Tim is on the money--you need to instantiate an instance of AAppTest which in turn instantiates an instance of the application object before instantiating and testing your business objects. I also recommend checking out the MM .NET Dev Guide topic "Usin NUnit with MM .NET" since doing unit testing is a best practice.
Best Regards
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com