TestCreateSecurityReadEndPoint() public method

public TestCreateSecurityReadEndPoint ( ) : IEsbManagementEndpoint
return IEsbManagementEndpoint
コード例 #1
0
        public void SettingsRead_CreateSecurityReadEndPoint_IsInstanceOfSecurityRead()
        {
            //------------Setup for test--------------------------
            var securityRead = new Func <IEsbManagementEndpoint>(() => null);

            var settingsRead = new TestSettingsRead(securityRead);

            //------------Execute Test---------------------------
            var endpoint = settingsRead.TestCreateSecurityReadEndPoint();

            //------------Assert Results-------------------------
            Assert.IsNotNull(endpoint);
            Assert.IsInstanceOfType(endpoint, typeof(SecurityRead));
        }
コード例 #2
0
        public void SettingsRead_CreateSecurityReadEndPoint_IsInstanceOfSecurityRead()
        {
            //------------Setup for test--------------------------
            var securityRead = new Func<IEsbManagementEndpoint>(() => null);

            var settingsRead = new TestSettingsRead(securityRead);

            //------------Execute Test---------------------------
            var endpoint = settingsRead.TestCreateSecurityReadEndPoint();

            //------------Assert Results-------------------------
            Assert.IsNotNull(endpoint);
            Assert.IsInstanceOfType(endpoint, typeof(SecurityRead));
        }