我刚刚在Just Mock,面临传递此方法的问题,需要帮助来理解问题。 我有一个下面,我想测试 public ActionResult Create(JournalViewModel journal)
{
if (ModelState.IsValid)
{
var newJournal = _mapper.Map<JournalViewModel,
我有以下型号: public class Bus
{
public int ID { get; set; }
[Required]
public string From { get; set; }
[Required]
public string To { get; set; }
[Required]
p