コード例 #1
0
        public void TestMethod01()
        {
            var simpleService = _container.GetExportedValue <ISimpeMockService>();

            Assert.IsNotNull(simpleService);

            Assert.AreEqual("hello", simpleService.Say("hello"));
        }
コード例 #2
0
 public static TService GetService <TService>()
 {
     return(_container.GetExportedValue <TService>());
 }