Exemple #1
0
        public NotesHttpServiceV1Test()
        {
            _persistence = new NotesMemoryPersistance();
            _controller  = new NotesController();
            _service     = new NotesHttpServiceV1();

            IReferences references = References.FromTuples(
                new Descriptor("shl-services-notes", "persistence", "memory", "default", "1.0"), _persistence,
                new Descriptor("shl-services-notes", "controller", "default", "default", "1.0"), _controller,
                new Descriptor("shl-services-notes", "service", "http", "default", "1.0"), _service
                );

            _controller.SetReferences(references);

            _service.Configure(HttpConfig);
            _service.SetReferences(references);
            _service.OpenAsync(null).Wait();
        }
 public NotesMemoryPersistenceTest()
 {
     Persistence = new NotesMemoryPersistance();
     Fixture     = new NotesPersistenceFixture(Persistence);
 }