Updating Associated Metadata Provider to follow the existing pattern.

cc @dougbu @rynowak 
put this `#if` block above the Xunit `using` to keep the `using`s in order