Exemplo n.º 1
0
 public Adapter Constructor(Adaptee adaptee, double dt)
 {
     Adapter target = new Adapter(adaptee, dt);
     return target;
     // TODO: add assertions to method AdapterTest.Constructor(Adaptee, Double)
 }
Exemplo n.º 2
0
 // Different constructors for the expected targets/adaptees
 // Adapter-Adaptee
 // ReSharper disable UnusedParameter.Local
 /// <summary>
 /// The Adeptee feature will be altered.
 /// </summary>
 /// <param name="adaptee"></param>
 public Adapter(Adaptee adaptee, double dt)
     // ReSharper restore UnusedParameter.Local
 {
     m_NormCdf = ((double arg) => new Distributions().NormCdf(arg));
     // Set the delegate to the new standard
     if (adaptee != null)
     {
         m_Distributions = adaptee;
     }
 }