示例#1
0
        public void CreateFailureMechanismSectionsImportInfo_InquiryHelperNull_ThrowsArgumentNullException()
        {
            // Call
            void Call() => PipingImportInfoFactory.CreateFailureMechanismSectionsImportInfo(null);

            // Assert
            var exception = Assert.Throws <ArgumentNullException>(Call);

            Assert.AreEqual("inquiryHelper", exception.ParamName);
        }
示例#2
0
        public void CreateFailureMechanismSectionsImportInfo_WithData_ReturnsImportInfo()
        {
            // Setup
            var mocks         = new MockRepository();
            var inquiryHelper = mocks.Stub <IInquiryHelper>();

            mocks.ReplayAll();

            // Call
            ImportInfo <PipingFailureMechanismSectionsContext> importInfo = PipingImportInfoFactory.CreateFailureMechanismSectionsImportInfo(inquiryHelper);

            // Assert
            Assert.IsNotNull(importInfo);
            mocks.VerifyAll();
        }
 private static ImportInfo <PipingFailureMechanismSectionsContext> GetImportInfo(IInquiryHelper inquiryHelper)
 {
     return(PipingImportInfoFactory.CreateFailureMechanismSectionsImportInfo(inquiryHelper));
 }