Esempio n. 1
0
        public StarsControllerTest()
        {
            _persistence = new StarsMemoryPersistence();
            _persistence.Configure(new ConfigParams());

            _controller = new StarsController();

            var references = References.FromTuples(
                new Descriptor("stars", "persistence", "memory", "*", "1.0"), _persistence,
                new Descriptor("stars", "controller", "default", "*", "1.0"), _controller
                );

            _controller.SetReferences(references);

            _persistence.OpenAsync(null).Wait();
        }
Esempio n. 2
0
        public StarsDirectClientV1Test()
        {
            _persistence = new StarsMemoryPersistence();
            _controller  = new StarsController();
            _client      = new StarsDirectClientV1();

            IReferences references = References.FromTuples(
                new Descriptor("stars", "persistence", "memory", "default", "1.0"), _persistence,
                new Descriptor("stars", "controller", "default", "default", "1.0"), _controller,
                new Descriptor("stars", "client", "direct", "default", "1.0"), _client
                );

            _controller.SetReferences(references);

            _client.SetReferences(references);

            _fixture = new StarsClientV1Fixture(_client);

            _client.OpenAsync(null).Wait();
        }