Try do something like this:

[TestFixture]
public class SampleEventListenerTestFixture :
DomainTestFixture<Sample>
{
    [Test]
    public void Update()
    {
        using (new SessionScope())
        {
            var sample = new Sample() { Name = "OldName" };

            sample.Save();

            sample.Name = "New Name";

            sample.Save();
        }
    }
}

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" 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/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to