CloneSet1280


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
14210.978class_member_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11494
src/NHibernate.Test/NHSpecificTest/NH1601/Fixture1.cs
214103
src/NHibernate.Test/NHSpecificTest/NH1601/Fixture2.cs
Clone Instance
1
Line Count
14
Source Line
94
Source File
src/NHibernate.Test/NHSpecificTest/NH1601/Fixture1.cs

        public ProjectWithOneList LoadProject()
        {
            ProjectWithOneList project;
            using (ISession session = OpenSession())
            using (ITransaction tx = session.BeginTransaction())
            {
                //The project is loaded and Scenario1, Scenario2 and Scenario3 properties can be set
                //This will succeed regardless of whether the scenario list is accessed during the set
                project = session.Get < ProjectWithOneList > ("Test");

                //Commit the transaction and cloase the session
                tx.Commit();
            }
            return project;
        }



Clone Instance
2
Line Count
14
Source Line
103
Source File
src/NHibernate.Test/NHSpecificTest/NH1601/Fixture2.cs

        public Project LoadProject()
        {
            Project project;
            using (ISession session = OpenSession())
            using (ITransaction tx = session.BeginTransaction())
            {
                //The project is loaded and Scenario1, Scenario2 and Scenario3 properties can be set
                //This will succeed regardless of whether the scenario list is accessed during the set
                project = session.Get < Project > ("Test");

                //Commit the transaction and cloase the session
                tx.Commit();
            }
            return project;
        }



Clone AbstractionParameter Count: 1Parameter Bindings

public [[#variable29540ae0]]LoadProject()
{
    [[#variable29540ae0]]project;
   using (ISession session = OpenSession())
      using (ITransaction tx = session.BeginTransaction())
      {
         //The project is loaded and Scenario1, Scenario2 and Scenario3 properties can be set
         //This will succeed regardless of whether the scenario list is accessed during the set
         project = session.Get < [[#variable29540ae0]]> ("Test");
         //Commit the transaction and cloase the session
         tx.Commit();
      }
   return project;
}

 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#29540ae0]]
Project 
12[[#29540ae0]]
ProjectWithOneList