単体テストの実行で、メソッドをモックするのに間違いがありました。入力するパラメーターに応じて異なる結果を返そうとしていますが、それ以外の場合はデフォルトの回答を返します。問題は、常にデフォルトの回答を受け取っていることです。
_commonFunctionsMock.Expects.AtLeastOne.Method(x => x.GetFeePrice("", false, null))
.WithAnyArguments().WillReturn(-1);
_commonFunctionsMock.Expects.AtLeastOne.Method(x => x.GetFeePrice("",false,null))
.With("BAG1", true, FamilyFaresType.Optima).WillReturn(0);
_commonFunctionsMock.Expects.AtLeastOne.Method(x => x.GetFeePrice("", false, null))
.With("BAG2", true, FamilyFaresType.Optima).WillReturn(87);
_commonFunctionsMock.Expects.AtLeastOne.Method(x => x.GetFeePrice("", false, null))
.With("BAG3", true, FamilyFaresType.Optima).WillReturn(139);