CSLA .NET

Vibrant discussion about CSLA .NET and using the framework to build great business applications.

Forum has moved

New location: CSLA .NET forum


CSLA .NET Resources:
  • CSLA .NET forum
  • CSLA .NET home page
  • Browse Site by Tags

    Showing related tags and posts across the entire site.
    • CSLA unit testing MVC no DAL

      I'm new to CSLA, and also unit testing in general, yet I'm newly assigned to a project that uses CSLA and they want to now write unit tests for it, and I'm lost. The project is a ASP.NET MVC 3 (c#) application, with a csla library that has umm inline? dataportal methods. The actual data fetching...
      Posted to CSLA .NET discussion by zbend on Tue, Aug 28 2012
    • Re: No luck Setting Up Async Units Tests

      You can also look at http://unitdriven.codeplex.com - this is the framework we (Justin Chase) created to support unit testing in CSLA so we had the same testing structure on .NET, Silverlight, WP7, and Android. Most importantly, it provides a common model for async test authoring - the rest is largely...
      Posted to CSLA .NET discussion by RockfordLhotka on Mon, Mar 19 2012
    • Getting property values

      Let me start by describing my use case. I have a system to allow a user to do a return (say like a tax return). Currently, there is an admin side that allows admins to define support documents for a return. They all display. The new requirement is to filter the list of supporting documents depending...
      Posted to CSLA .NET discussion by Andy on Wed, Dec 28 2011
    • Re: Bug?: Unit Testing Csla.Web.Mvc.Controller results in access exception

      Hi Thanks for the quick response To See the Same Results Create a Sample Razor Application and include the Unit Tests Compile and Run the default Controller Tests (About and Home) All works Change to inherit from CSLA Controller Run the Test - Both Tests Fail Any Help would be greatly appreciated
      Posted to CSLA .NET discussion by BillG on Mon, Jul 18 2011
    • Re: Bug?: Unit Testing Csla.Web.Mvc.Controller results in access exception

      I am running into the same issue I have done the same tests and came to the same set of results Has anyone else run into this? I've looked through the Latest EBook and accompaning code hoping to find a sample or help in testing and was surprised to see no tests for the MVC Project Hopefully someone...
      Posted to CSLA .NET discussion by BillG on Mon, Jul 18 2011
    • unit tests, TransactionScope and threads

      Hi, I am trying to unit test our CRUD code for our CSLA project. I am using NUnit. I was hoping to use TransactionScope to clean up the database after each test. E.g. something like this.. [SetUp] public void SU() { _transactionScope = new TransactionScope(); } [TearDown] public void TD() { _transactionScope...
      Posted to CSLA .NET discussion by richardp on Wed, May 4 2011
    • Prism example utilizing Csla

      Hi All, Any chance of a Prism example utilizing Csla coming down the pike soon? I was looking at the old Rolodex using the Composite Application Guidance, but now that Prism 4.0 is out, it would be awesome to see an example utilizing it. And if it could be the PTracker application, that would be great...
      Posted to CSLA .NET discussion by CyclingFoodmanPA on Fri, Feb 11 2011
    • Re: How do I unit test a lazy async property?

      Exactly. You need some scheme or framework that allows for the async operation to run, but the test itself to be "suspended" until the result comes back. There are various solutions out there. We created UnitDriven specifically so we could use the same technique in .NET and Silverlight (and...
      Posted to CSLA .NET discussion by RockfordLhotka on Thu, Dec 2 2010
    • Re: Dependecy injection on Factories

      Exactly what do you want to do? Where are you trying to add abstraction? When you say "factories", there are at least two types of factory in CSLA. There are the static factory methods used to create objects from the interface control layer (like from an MVC controller). And there are the factory...
      Posted to CSLA .NET discussion by RockfordLhotka on Tue, Oct 19 2010
    • Re: How to invalidate Dependancy rule for Silverlight unit test?

      Hi, You have the parameters in the wrong order for Dependency rule: BusinessRules.AddRule(new Csla.Rules.CommonRules.Dependency(PropOne, PropTwo)); //if PropTwo gets changed then we run the rules for PropOne as wel This line actually means: When PropOne changes the rules for PropTwo must also be run...
      Posted to CSLA .NET discussion by JonnyBee on Fri, Sep 24 2010
    • Re: Do you test common buisness rules?

      It should be possible to directly unit test the Execute() method of a rule. You'd need to create a mock context object that exactly matches the context object CSLA provides to the rule at runtime, but otherwise this should be pretty straightforward. This is only really possible if your rule does...
      Posted to CSLA .NET discussion by RockfordLhotka on Mon, Aug 30 2010
    • Re: Testing Lazy Loading in Silverlight

      There are different async models in .NET in general - the old Begin/End method model, the event model and the callback model. Recently the callback model has become popular, but the event model is usually a parallel offering. The Begin/End model seems to have lost favor. In short, where a callback model...
      Posted to CSLA .NET discussion by RockfordLhotka on Thu, Jul 22 2010
    • Testing Lazy Loading in Silverlight

      Hi, I am currently developing a system using CSLA 4 and Silverlight. I am also developing a suite of tests (arguably unit tests :). I am using the UnitDriven framework to help test the asynchronous pieces, and this works very well (Thanks Rocky!) Now I am looking at lazy loading my child objects in the...
      Posted to CSLA .NET discussion by Smith866 on Thu, Jul 22 2010
    • Csla, Unit testing and mocking

      Hi, I'm looking for some direction on how best to mock csla objects, especially between a root and its children. I'm under the impression that to effectively do this kind of testing, one really needs to take advantage of the ObjectFactory way of doing things. Can someone that's been through...
      Posted to CSLA .NET discussion by Andy on Wed, Jun 30 2010
    • Business Rule Testability

      I'd like to be able to write unit tests for the custom business rules I create so that I can verify the rules work as expected without having to test them through a business object that uses them. RuleContext does not have a public constructor and there is no interface that can be implemented in...
      Posted to CSLA .NET discussion by Dave Kehring on Fri, Jun 18 2010
    • Re: Silverlight design time error using VS 2010

      I do have a question about this, several really. First, at my new gig, we are doing a lot of stuff I haven't done before, namely mocking and ICO for tighter unit tests. Static factory methods can't be mocked away. For a PoC I've been working on, I just created a factory object to wrap the...
      Posted to CSLA .NET discussion by Andy on Tue, Jun 15 2010
    • DataPortal CreateCompleted Not Raised

      Hi Everyone, I have am trying to work with CSLA Silverlight v4 Beta 2 and when I create the async factory methods, the CreateCompleted event never seems to be raised. Is this something that should be done automatically, or do I have to do something in my code to trigger the Event being raised? Below...
      Posted to CSLA .NET discussion by mcalhoun on Sun, Jun 13 2010
    • Re: CSLA Tests

      Tests may fail in your environment due to configuration differences (path to the database, etc), whether you have COM+ enabled on your workstation and so forth. I'm pretty sure there actually were some failing tests in 3.8.1, but I think the 3.8.3 tests all pass. Also, if you are running the Silverlight...
      Posted to CSLA .NET discussion by RockfordLhotka on Fri, May 7 2010
    • Is there anyone out there that can provide some guidance on DataMapper Best Practices

      As a part of some "architectural studies" for an up-coming project, I have been looking at the DataMapper class. We are looking at using data transfer objects (DTO) to communicate with the database and probably MVVM objects to communicate with WPF. One of the downsides with each of these is...
      Posted to CSLA .NET discussion by JonStonecash on Thu, Apr 22 2010
    • Re: Async Lazy Load of BusinessListBase subclass in Silverlight

      UnitDriven on SL is self-contained. Look at the SL tests for Silverlight - specifically the actual test app, which executes the UnitDriven shell. UnitDriven works on the .NET side as simply an extra DLL you use in your tests. It works with nunit or mstest. The CSLA 4 tests use UnitDriven and are now...
      Posted to CSLA .NET discussion by RockfordLhotka on Mon, Mar 29 2010
    Page 1 of 1 (20 items)

    Copyright (c) 2006-2014 Marimer LLC. All rights reserved.
    Email admin@lhotka.net for support.
    Powered by Community Server (Non-Commercial Edition), by Telligent Systems