public void TestResolveAgentFromFileSystem()
        {
            var resolver = new FileSystemAgentResolver();

            var agent = resolver.GetAgent("Fake");

            Assert.NotNull(agent);

            TestFakeAgent(agent);
        }
        public void GetListOfCommandsFromAgent()
        {
            var resolver = new FileSystemAgentResolver();

            var agent = resolver.GetAgent("Fake");

            var agentMetadata = agent.GetAgentInfo();

            var commandTypes =
                agent.GetTypes().Where(
                    x => x.Namespace == agentMetadata.CommandNamespace && typeof (ICommand).IsAssignableFrom(x)).ToList();

            Assert.Contains(typeof (FakeCommand), commandTypes);
        }