コード例 #1
0
        // GET: Home
        public ActionResult Index()
        {
            // Download floorplan
            _bll.GetFloorPlan(Server.MapPath("/Pictures/"));

            return(View());
        }
コード例 #2
0
        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);
            }
        }
コード例 #3
0
 public void GetFloorPlan_Called_TableFloorplanDownloadFloorplanCalled()
 {
     _uut.GetFloorPlan("test");
     _tableFloorplan.Received().DownloadFloorplan(Arg.Any <string>());
 }