public LinguisticVariableCreator(
     IMembershipFunctionCreator membershipFunctionCreator,
     ILinguisticVariableParser linguisticVariableParser)
 {
     _membershipFunctionCreator = membershipFunctionCreator ?? throw new ArgumentNullException(nameof(membershipFunctionCreator));
     _linguisticVariableParser  = linguisticVariableParser ?? throw new ArgumentNullException(nameof(linguisticVariableParser));
 }
 public void SetUp()
 {
     _membershipFunctionCreatorMock = MockRepository.GenerateMock <IMembershipFunctionCreator>();
     _linguisticVariableParserMock  = MockRepository.GenerateMock <ILinguisticVariableParser>();
     _linguisticVariableCreator     = new LinguisticVariableCreator(_membershipFunctionCreatorMock, _linguisticVariableParserMock);
 }