/// <summary>
        /// configure uses the service registrar to ensure complete service registration.
        /// i'd like this to be injectable but i don't have control at this level.
        /// so i have to use a static factory
        /// </summary>
        /// <param name="builder"></param>
        public void Configure(IWebJobsBuilder builder)
        {
            builder.AddDependencyInjection();

            var registrar = ServiceRegistrationProvider.CreateService(Assembly.GetExecutingAssembly());

            registrar.Compose(builder.Services);
        }
        public void TheSystemUnderTestSupportsItsServiceContract()
        {
            // arrange
            var sut = ServiceRegistrationProvider.CreateService(GetAssemblyfor <ServiceRegistrationProvider>());

            // act / assert
            Assert.IsAssignableFrom <IRegisterServices>(sut);
        }