Sally Yates refused to defend the Executive order issued by President Trump regarding immigration, and was dismissed by President Trump last night.
She was a "left over" from the previous administration soon to be replaced. IF she felt she could not abide by the instructions of the new President (rather than the old one who appointed her but is no longer president) her rightful response would be resignation. She had every "right" to object, of course - and refuse to abide by the executive order: but then she should have either resign or expected to be terminated and replaced (which frankly was soon to happen anyway).
BTW, none of this shocks me. She would have been replaced very soon ANYWAY (and everyone - everyone - knew it). And this happens all the time in the "real world" (which I realize, Washington DC is not a part of). A new owner or CEO comes in (one with a VERY different agenda and opinions than the previous one) - and yes, a lot of holdovers - appointed by the old guy, uber loyal to the old guy, parroting the old guy - well, they resign or they get fired. A new man is in town. Sorry - it's just reality.
.