Not a lot of developers know this, but it's possible to create Code First tests with CodedUI. It's not being advocated, which is bad imo.
I consider the Recording option as a fragile one. It uses mouse coords which means you have to recreate the tests when the UI changes...
The maintainable way would be to use the Page Object pattern (also used by other popular tools like Selenium). This creates an abstraction of the UI which gives you more flexibility and strong typing.
You get easy, readable and most of all maintainable code:
var storeHyperlink = new HtmlHyperlink(_browserWindow);
storeHyperlink.SearchProperties[HtmlHyperlink.PropertyNames.Id] = "StoreLink";
Mouse.Click(storeHyperlink);
Read more