Beispiel #1
0
        public virtual IEnumerable <IServiceProvider> GetServiceProviders()
        {
            var serviceProviders = new List <IServiceProvider> {
                ServiceProvider.Assign <BaseServices>()
            };

            return(serviceProviders.ToArray());
        }
Beispiel #2
0
        public void RegisterAll_Calls()
        {
            SetupDependencies(new []
            {
                ServiceProvider.Assign <TestServiceProvider>()
            });

            _serviceCollectionMock.Setup(serviceCollection => serviceCollection.Add(It.IsAny <ServiceDescriptor>())).Verifiable();

            _systemUnderTest.RegisterAll(_serviceCollectionMock.Object, _connectionInfoMock.Object);

            _serviceCollectionMock.Verify(serviceCollection => serviceCollection.Add(It.IsAny <ServiceDescriptor>()));
        }