public HttpResponseMessage Put(CreateSiteModel newSiteValues) { var site = new MockSite { Name = newSiteValues.Name }; repository.Create(site); var response = Request.CreateResponse(HttpStatusCode.Created); return response; }
public void IntitializeController() { repository = new FakeMockSiteRepository(); controller = new MockSiteController(repository); controller.Request = new System.Net.Http.HttpRequestMessage(); testSite = new MockSite(); testSite.Name = "Test Site"; }