CloneSet278


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
30201.000class_member_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
13013
src/NHibernate.Test/NHSpecificTest/NH1499/Fixture.cs
23021
src/NHibernate.Test/NHSpecificTest/NH1508/Fixture.cs
Clone Instance
1
Line Count
30
Source Line
13
Source File
src/NHibernate.Test/NHSpecificTest/NH1499/Fixture.cs

                protected override void OnSetUp()
                {
                        Person john = new Person();
                        john.Name = "John";

                        Document doc1 = new Document();
                        doc1.Person = john;
                        doc1.Title = "John's Doc";
                        Document doc2 = new Document();
                        doc2.Title = "Spec";

                        using (ISession session = OpenSession())
                        using (ITransaction tx = session.BeginTransaction())
                        {
                                session.Save(john);
                                session.Save(doc1);
                                session.Save(doc2);

                                tx.Commit();
                        }
                }

                protected override void OnTearDown()
                {
                        using (ISession session = OpenSession())
                        using (ITransaction tx = session.BeginTransaction())
                        {
                                session.Delete("from Person");
                                session.Delete("from Document");
                                tx.Commit();
                        }
                }



Clone Instance
2
Line Count
30
Source Line
21
Source File
src/NHibernate.Test/NHSpecificTest/NH1508/Fixture.cs

                protected override void OnSetUp()
                {
                        Person john = new Person();
                        john.Name = "John";

                        Document doc1 = new Document();
                        doc1.Person = john;
                        doc1.Title = "John's Doc";

                        Document doc2 = new Document();
                        doc2.Title = "Spec";
                        using (ISession session = OpenSession())
                        using (ITransaction tx = session.BeginTransaction())
                        {
                                session.Save(john);
                                session.Save(doc1);
                                session.Save(doc2);

                                tx.Commit();
                        }
                }

                protected override void OnTearDown()
                {
                        using (ISession session = OpenSession())
                        using (ITransaction tx = session.BeginTransaction())
                        {
                                session.Delete("from Person");
                                session.Delete("from Document");
                                tx.Commit();
                        }
                }



Clone AbstractionParameter Count: 0Parameter Bindings

protected override void OnSetUp()
{
   Person john = new Person();
   john.Name = "John";
   Document doc1 = new Document();
   doc1.Person = john;
   doc1.Title = "John's Doc";
   Document doc2 = new Document();
   doc2.Title = "Spec";
   using (ISession session = OpenSession())
      using (ITransaction tx = session.BeginTransaction())
      {
         session.Save(john);
         session.Save(doc1);
         session.Save(doc2);
         tx.Commit();
      }
}

protected override void OnTearDown()
{
   using (ISession session = OpenSession())
      using (ITransaction tx = session.BeginTransaction())
      {
         session.Delete("from Person");
         session.Delete("from Document");
         tx.Commit();
      }
}

 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None