Пример #1
0
        /// <summary>
        /// Arranges the <see cref="IWebJobActivator"/> instance.
        /// </summary>
        /// <param name="handler"><see cref="RegistrationHandler"/> instance.</param>
        /// <returns>Returns the <see cref="IWebJobActivator"/> instance.</returns>
        public IWebJobActivator ArrangeWebJobActivator(out RegistrationHandler handler)
        {
            handler = new FooRegistrationHandler();

            var activator = new FooWebJobActivator();

            return(activator);
        }
        public void Given_InvalidHandler_RegisterDependencies_ShouldReturn_Result()
        {
            var activator = this._fixture.ArrangeAutofacWebJobActivator(out RegistrationHandler handler);

            handler = new FooRegistrationHandler();

            activator.RegisterDependencies(handler);

            var dependencies = GetRegisteredDependencies(activator);

            dependencies.Should().HaveCount(0);
        }