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"); }
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"); }