Пример #1
0
        public SharingPolicyActivator(SharingGraph graph, SharingLogsCache logs, IEnumerable <ISharingPolicy> policies)
        {
            _graph    = graph;
            _logs     = logs;
            _policies = policies;

            Diagnostics = new SharingRegistrationDiagnostics(_graph, _logs);
        }
Пример #2
0
        public SharingPolicyActivator(SharingGraph graph, SharingLogsCache logs, IEnumerable<ISharingPolicy> policies)
        {
            _graph = graph;
            _logs = logs;
            _policies = policies;

            Diagnostics = new SharingRegistrationDiagnostics(_graph, _logs);
        }
        public void register_as_global_invokes_diagnostics()
        {
            var inner = MockRepository.GenerateMock<ISharingRegistration>();
            var fake = new SharingRegistrationDiagnostics(inner, _sharingLogs);

            _activator.Diagnostics = fake;
            _activator.RegisterAppGlobal(_packageLog);

            fake.CurrentProvenance.ShouldEqual(FubuSparkConstants.HostOrigin);
            inner.AssertWasCalled(x => x.Global(FubuSparkConstants.HostOrigin));
        }
Пример #4
0
 public SharingConfigActivator(SharingGraph graph, IFileSystem fileSystem, SharingLogsCache logs)
 {
     _graph       = graph;
     _fileSystem  = fileSystem;
     _diagnostics = new SharingRegistrationDiagnostics(_graph, logs);
 }