Ejemplo n.º 1
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>()));
        }