Beispiel #1
0
        public void DelegateFactoryResolverConstructorTest()
        {
            FactoryRequestHandler   requestHandler = null; // TODO: Initialize to an appropriate value
            DelegateFactoryResolver target         = new DelegateFactoryResolver(requestHandler);

            Assert.Inconclusive("TODO: Implement code to verify target");
        }
 /// <summary> Creates the resolver based on two resolver functions. </summary>
 /// <param name="requestHandler"> The resolver function that returns a factory which in turn is responsible for creating a given <see cref="ILog" />. </param>
 /// <exception cref="ArgumentNullException"> If <paramref name="requestHandler" /> is a null reference. </exception>
 public DelegateFactoryResolver(FactoryRequestHandler requestHandler)
 {
     if (requestHandler == null)
     {
         throw new ArgumentNullException("requestHandler");
     }
     this.RequestHandler = requestHandler;
 }
Beispiel #3
0
        public void RequestHandlerTest()
        {
            PrivateObject param0 = null;                                                              // TODO: Initialize to an appropriate value
            DelegateFactoryResolver_Accessor target   = new DelegateFactoryResolver_Accessor(param0); // TODO: Initialize to an appropriate value
            FactoryRequestHandler            expected = null;                                         // TODO: Initialize to an appropriate value
            FactoryRequestHandler            actual;

            target.RequestHandler = expected;
            actual = target.RequestHandler;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }
Beispiel #4
0
        public void GetFactoryTest()
        {
            FactoryRequestHandler   requestHandler = null;                                        // TODO: Initialize to an appropriate value
            DelegateFactoryResolver target         = new DelegateFactoryResolver(requestHandler); // TODO: Initialize to an appropriate value
            string      logName  = string.Empty;                                                  // TODO: Initialize to an appropriate value
            ILogFactory expected = null;                                                          // TODO: Initialize to an appropriate value
            ILogFactory actual;

            actual = target.GetFactory(logName);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }
Beispiel #5
0
 /// <summary>
 /// Creates the resolver based on two resolver functions.
 /// </summary>
 /// <param name="requestHandler">The resolver function that returns
 /// a factory which in turn is responsible for creating a given <see cref="ILogger"/>.</param>
 /// <exception cref="ArgumentNullException">If <paramref name="requestHandler"/>
 /// is a null reference.</exception>
 public DelegateFactoryResolver(FactoryRequestHandler requestHandler)
 {
     Ensure.ArgumentNotNull(requestHandler, "requestHandler");
     RequestHandler = requestHandler;
 }