public CardActivityTests(EsdbFixture esdb)
 {
     _esdb       = esdb;
     _repository = new InMemoryCardActivityRepository();
     _runner     = new ProjectionRunner(esdb.Client, new NullLogger <ProjectionRunner>(), new Projection[]
     {
         new CardActivityProjection(_repository)
     });
 }
Пример #2
0
        public void SetUp()
        {
            theProjection = new Projection <Parent>(DisplayFormatting.RawValues);
            theParent     = new Parent();

            _dictionary = new Lazy <IDictionary <string, object> >(() =>
            {
                var runner = new ProjectionRunner(new FubuCore.Binding.InMemory.InMemoryServiceLocator());
                var node   = new DictionaryMediaNode();

                runner.Run(theProjection, theParent, node);

                return(node.Values);
            });
        }
Пример #3
0
 public ProjectionService(ProjectionRunner runner)
 {
     _runner = runner;
 }