So long as you were paid for those 2 weeks, then having you train your replacemtent after you were given notice of termination was perfectly legal. The fact is that you could have refused and just not have gone to work. In an "at will" employment relationship an employer can set the conditions of employment much as it sees fit as long as it does not constitute any form of legally actionable discrimination or breaches the terms of any employment contract or union agreement.