I have working in unit testing in ASP.Net web application, now I have accessing my constructor in the model file to test which has Server.MapPath code for uploading my XMLfile,
If you can't modify the source code, try using shims (https://msdn.microsoft.com/en-us/library/hh549176.aspx).