Exemplo n.º 1
0
        public void GetWaitingTasks()
        {
            var store = new DockerNodeStore(_configuration,
                                            new TestDockerNodeStore.TestNotificationService());
            var service = new DockerNodeService(store);
            var result  = service.GetWaitingTasks();

            Assert.NotNull(result);
        }
Exemplo n.º 2
0
        public void GetNodes()
        {
            var store = new DockerNodeStore(_configuration,
                                            new TestDockerNodeStore.TestNotificationService());
            var service = new DockerNodeService(store);
            var nodes   = service.GetNodes();

            Assert.Equal(2, nodes.Count());
            Assert.Contains(nodes, x => x.Name == "docker-1");
            Assert.Contains(nodes, x => x.Name == "docker-2");
        }