Hi. I want to test a mvc controller. I'm using Moq to mock the services, but I don't know how to mock this.Request.Files["Attachement1"] and this.Server.MapPath("~/Temp") ("this" is the controller)
I tried to create a new Mock<
HttpRequestBase>
(); but this.Request doesn't have a setter.
Help me please with an advise. Thanks