예제 #1
0
        public void DsfWcfEndPointActivity_GetHashCode_MethodOutputDescriptionSource_NotNull_Expect_IsNotNull()
        {
            //-----------------------Arrange---------------------
            var mockOutputDescription = new Mock <IOutputDescription>();

            var wcfSource = new WcfSource(new FakeWcfProxyService())
            {
                Name = "WcfSource", EndpointUrl = "TestUrl"
            };
            var wcfAction = new WcfAction()
            {
                FullName = "MethodName",
                Method   = "MethodName",
            };
            var dsfWcfEndPointActivity = new DsfWcfEndPointActivity()
            {
                Method            = wcfAction,
                OutputDescription = mockOutputDescription.Object,
                Source            = wcfSource,
            };
            //-----------------------Act-------------------------
            var hashCode = dsfWcfEndPointActivity.GetHashCode();

            //-----------------------Assert----------------------
            Assert.IsNotNull(hashCode);
        }
예제 #2
0
        public void DsfWcfEndPointActivity_GetHashCode_IsNotNull_Expect_True()
        {
            //-----------------------Arrange---------------------
            var dsfWcfEndPointActivity = new DsfWcfEndPointActivity();
            //-----------------------Act-------------------------
            var hashCode = dsfWcfEndPointActivity.GetHashCode();

            //-----------------------Assert----------------------
            Assert.IsNotNull(hashCode);
        }