// GET: Home public ActionResult Index() { // Download floorplan _bll.GetFloorPlan(Server.MapPath("/Pictures/")); return(View()); }
public void GetFloorplan_CalledWithPath_FloorplanIsDownloadedToPath() { string filepath = AppDomain.CurrentDomain.BaseDirectory + @"\"; string file = filepath + @"floorplan.jpg"; //Hardcoded in API //Remove file if (File.Exists(file)) { File.Delete(file); } _BLL.GetFloorPlan(filepath); Assert.That(File.Exists(file)); //Remove file if (File.Exists(file)) { File.Delete(file); } }
public void GetFloorPlan_Called_TableFloorplanDownloadFloorplanCalled() { _uut.GetFloorPlan("test"); _tableFloorplan.Received().DownloadFloorplan(Arg.Any <string>()); }