I'm using 3.6 version of Rhino. How do i test the following funtion
which has LINQ query

protected override void Execute(int PackageID)
        {

            // get the package hierarchy from the database
            IRepository<Package> repository =
DefaultServiceLocator.Instance.GetInstance<IRepository<Package>>();
            var package = repository.GetQuery()
                .Where(a => a.PackageID == PackageID)
                .Include(a => a.PackageDetails.Select(b =>
b.DocumentTemplate))
                .Include(a => a.PackageArea)
                .Include(a => a.ReturnDetails)
                .FirstOrDefault();

                 this.Package.Set(package);
        }

-- 
You received this message because you are subscribed to the Google Groups 
"Rhino.Mocks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rhinomocks?hl=en.

Reply via email to