public StructureMapRegistry() { var helloWorld = new HelloWorld("StructureMap says hello!"); ForRequestedType<HelloWorld>().AsSingletons().TheDefault.IsThis(helloWorld); }
public StructureMapRegistry() { var helloWorld = new HelloWorld("StructureMap says hello!"); ForRequestedType <HelloWorld>().AsSingletons().TheDefault.IsThis(helloWorld); }
public void Setup() { Bootstrapper.Bootstrap(); _sut = ObjectFactory.GetInstance<HelloWorld>(); }
public void should_say_hello_world() { var sut = new HelloWorld("Hello, World!"); var results = sut.Speak(); Assert.AreEqual("Hello, World!", results); }