コード例 #1
0
        public void configure_is_idempotent()
        {
            var graph = new ServiceGraph();

            graph.Configure<Something>(m => m.Message += "a");
            graph.Configure<Something>(m => m.Message += "b");
            graph.Configure<Something>(m => m.Message += "c");
            graph.Configure<Something>(m => m.Message += "d");
            graph.Configure<Something>(m => m.Message += "e");

            graph.FindAllValues<Something>().Single().Message.ShouldEqual("abcde");
        }
コード例 #2
0
        public void configure_is_idempotent()
        {
            var graph = new ServiceGraph();

            graph.Configure <Something>(m => m.Message += "a");
            graph.Configure <Something>(m => m.Message += "b");
            graph.Configure <Something>(m => m.Message += "c");
            graph.Configure <Something>(m => m.Message += "d");
            graph.Configure <Something>(m => m.Message += "e");

            graph.FindAllValues <Something>().Single().Message.ShouldEqual("abcde");
        }