Don't take her out when she does that, and she'll eventually calm down. As soon as she is calm take her out. Repeat
Sadie slept in her crate the first night she was here. She doesn't always like going in the crate but she quiets down quickly.
At night you will want to take her out if she starts crying in the middle of the night for a potty break. But don't pay any attention to her when you first put her in until she is behaving.