CSLA Light Sample code?

CSLA Light Sample code?

Old forum URL: forums.lhotka.net/forums/t/5173.aspx


JonM posted on Wednesday, July 30, 2008

I see the preview of CSLA 3.6 and CSLA Light are up.  I can download and complile both of them.  I really want to play with CSLA and Silverlight but I'm not sure where to start.   I know there are books coming from Rocky.  Does anyone have a sample business object/collection for CSLA Light??

ajj3085 replied on Wednesday, July 30, 2008

I suspect you'll probably have to be the pioneer on this forum when playing with those versions... let me know how it goes!

I'm still trying to get my BOs updated to use Managed fields..

RockfordLhotka replied on Wednesday, July 30, 2008

I'm doing a series of how-to posts on my blog at www.lhotka.net/weblog

They cover the next pre-release of the code, which will be very soon, but much of what I've covered thus far would work (or be very close) to the last pre-release.

Of course none of these pre-releases are even beta. I'm not even calling them alpha - just pre-releases so you can see what's coming (more or less).

JonM replied on Thursday, July 31, 2008

Awsome.  Thanks Rocky!

paupdb replied on Thursday, July 31, 2008

I've been working with the Subversion copies for a few weeks already.

I used the test harnesses to figure out some of the implementation - look at trunk/cslalighttest in particular.
You'll need trunk/cslalight, trunk/Dependencies, as well as cslacs36 and cslatest36 from the branches directory too in order to compile and run the test harness. 

To compile, what I did is checked out the above folders to my local machine, then exported the folders to a common root folder, removing the "36" from the branch directories. 

So I end up with the following structure:

root folder:
|-- cslacs
|-- cslatest
|-- cslalight
|-- cslalighttest
|-- Dependencies

Then run the solution in cslalighttest\Unit Test, making sure to set the startup project to be Web.

acheema replied on Thursday, July 31, 2008

Hi,
I setup the project as you stated in your post. All projects got compiled, except one SecuritTests.cs is giving following error:

Error    1    The type or namespace name 'TestBase' could not be found (are you missing a using directive or an assembly reference?)    J:\My Downloads\CSLA\CSLA 3.6 Preview\cslatest\Csla.Test\Silverlight\Security\SecurityTests.cs    23    32    Cslacs.Test

I am using CSLA 2.1 for quite some time, but this is first time to interact with CSLA 3.6, and with UnitTest projects.

Thanks.

Asad.

RockfordLhotka replied on Thursday, July 31, 2008

Did you get and install all the prerequisites listed on the download page and/or in the readme files?

 

It sounds like you might be missing nunit or UnitDriven or something?

 

Then again, if you are pulling the code directly from svn you could have caught it at a moment when the checked in code won’t build – that happens from time to time, as we have 5-6 people working on the code base at once…

 

This 3.6 and CSLA Light stuff is very much in a state of change, and is what most people would consider “bleeding edge” right now.

 

Rocky

 

 

From: acheema [mailto:cslanet@lhotka.net]
Sent: Thursday, July 31, 2008 7:53 PM
To: rocky@lhotka.net
Subject: Re: [CSLA .NET] CSLA Light Sample code?

 

Hi,
I setup the project as you stated in your post. All projects got compiled, except one SecuritTests.cs is giving following error:

Error    1    The type or namespace name 'TestBase' could not be found (are you missing a using directive or an assembly reference?)    J:\My Downloads\CSLA\CSLA 3.6 Preview\cslatest\Csla.Test\Silverlight\Security\SecurityTests.cs    23    32    Cslacs.Test

I am using CSLA 2.1 for quite some time, but this is first time to interact with CSLA 3.6, and with UnitTest projects.

Thanks.

Asad.



acheema replied on Friday, August 01, 2008

Rocky, thanks for quick response. I went through the all the Readme.txt file, and check all configurations. That seems to me ok. I also download NUnit framewok, cuz. nunit.framework.dll was missing from Dependencies/ folder too. The 'TestBase' error was occuering, cuz refrence to UnitDriven namespace was missing from SecurityTests.cs file.
Know I came across another namespace 'Csla.Test.Silverlight.Engine' error is missing, and I was unable to find where this namespace exists. By commenting is out, finally, the project got compliled successfully.

Is 'Csla.Test.Silverlight.Engine' namespace is mandatory for testing?

Thnaks for the help.

Asad.  

Copyright (c) Marimer LLC