CloneSet125


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
19320.991class_member_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11921
src/NHibernate.ByteCode.Castle.Tests/ProxyInterface/CastleProxyFixture.cs
21969
src/NHibernate.ByteCode.LinFu.Tests/ProxyInterface/ProxyFixture.cs
31935
src/NHibernate.ByteCode.Spring.Tests/ProxyInterface/ProxyFixture.cs
Clone Instance
1
Line Count
19
Source Line
21
Source File
src/NHibernate.ByteCode.Castle.Tests/ProxyInterface/CastleProxyFixture.cs

                [Test]
                public void Proxy()
                {
                        ISession s = OpenSession();
                        CastleProxy ap = new CastleProxyImpl { Id = 1, Name = "first proxy"
                                                             } ;
                        s.Save(ap);
                        s.Flush();
                        s.Close();
                        s = OpenSession();
                        ap = (CastleProxy) s.Load( typeof( CastleProxyImpl), ap.Id);
                        Assert.IsFalse(NHibernateUtil.IsInitialized(ap));
                        int id = ap.Id;
                        Assert.IsFalse(NHibernateUtil.IsInitialized(ap), "get id should not have initialized it.");
                        string name = ap.Name;
                        Assert.IsTrue(NHibernateUtil.IsInitialized(ap), "get name should have initialized it.");
                        s.Delete(ap);
                        s.Flush();
                        s.Close();
                }



Clone Instance
2
Line Count
19
Source Line
69
Source File
src/NHibernate.ByteCode.LinFu.Tests/ProxyInterface/ProxyFixture.cs

                [Test]
                public void Proxy()
                {
                        ISession s = OpenSession();
                        IMyProxy ap = new MyProxyImpl { Id = 1, Name = "first proxy"
                                                      } ;
                        s.Save(ap);
                        s.Flush();
                        s.Close();
                        s = OpenSession();
                        ap = (IMyProxy) s.Load( typeof( MyProxyImpl), ap.Id);
                        Assert.IsFalse(NHibernateUtil.IsInitialized(ap));
                        int id = ap.Id;
                        Assert.IsFalse(NHibernateUtil.IsInitialized(ap), "get id should not have initialized it.");
                        string name = ap.Name;
                        Assert.IsTrue(NHibernateUtil.IsInitialized(ap), "get name should have initialized it.");
                        s.Delete(ap);
                        s.Flush();
                        s.Close();
                }



Clone Instance
3
Line Count
19
Source Line
35
Source File
src/NHibernate.ByteCode.Spring.Tests/ProxyInterface/ProxyFixture.cs

                [Test]
                public void Proxy()
                {
                        ISession s = OpenSession();
                        IMyProxy ap = new MyProxyImpl { Id = 1, Name = "first proxy"
                                                      } ;
                        s.Save(ap);
                        s.Flush();
                        s.Close();
                        s = OpenSession();
                        ap = (IMyProxy) s.Load( typeof( MyProxyImpl), ap.Id);
                        Assert.IsFalse(NHibernateUtil.IsInitialized(ap));
                        int id = ap.Id;
                        Assert.IsFalse(NHibernateUtil.IsInitialized(ap), "get id should not have initialized it.");
                        string name = ap.Name;
                        Assert.IsTrue(NHibernateUtil.IsInitialized(ap), "get name should have initialized it.");
                        s.Delete(ap);
                        s.Flush();
                        s.Close();
                }



Clone AbstractionParameter Count: 2Parameter Bindings

[Test]
public void Proxy()
{
   ISession s = OpenSession();
    [[#variable2b7aa320]]ap = new [[#variable2b7aa300]]{
                                                          Id = 1, Name = "first proxy"
                                                       } ;
   s.Save(ap);
   s.Flush();
   s.Close();
   s = OpenSession();
   ap = ( [[#variable2b7aa320]])s.Load( typeof( [[#variable2b7aa300]]), ap.Id);
   Assert.IsFalse(NHibernateUtil.IsInitialized(ap));
   int id = ap.Id;
   Assert.IsFalse(NHibernateUtil.IsInitialized(ap), "get id should not have initialized it.");
   string name = ap.Name;
   Assert.IsTrue(NHibernateUtil.IsInitialized(ap), "get name should have initialized it.");
   s.Delete(ap);
   s.Flush();
   s.Close();
}

 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#2b7aa320]]
IMyProxy 
12[[#2b7aa320]]
CastleProxy 
13[[#2b7aa320]]
IMyProxy 
21[[#2b7aa300]]
MyProxyImpl 
22[[#2b7aa300]]
CastleProxyImpl 
23[[#2b7aa300]]
MyProxyImpl