我有以下电话:
public IEnumerable<uint> DeleteAppointment(uint appointmentId)
{
return _dataContextProvider.GetContextRW().Run(db => DeleteAppointmentById(db, appointmentId));
}
我想测试私有的DeleteAppointmentById方法,但当然不会调用它。我怎么称呼它?
运行方法:
void Run(Action<TDataAdapter> action)
它怎么可能是void但仍然返回私有函数的整数?我想我不明白行动......