コード例 #1
0
            public void GetEndpoint()
            {
                DiSetup.RestDataServiceTests();
                IEndpointRegister endpointRegister = DiHelper.GetService <IEndpointRegister>();
                bool wasSuccessfullyAdded          = endpointRegister.AddEndpoint("SomeEndpointTest", "TestString");

                string result = endpointRegister.GetEndpoint("SomeEndpointTest");

                Assert.AreEqual(true, wasSuccessfullyAdded);
                Assert.IsNotNull(result);
                Assert.AreEqual("TestString", result);
            }