public void CheckGetMetersForBuildingWithWrongBuildingId()
		{
			int wrongBuildingid = -1;
			var meterModel = new MeterModel();

			meterModel.GetMetersForBuilding(wrongBuildingid);
		}
        public JsonResult GetMetersForBuilding(int buildingId)
        {
            var model = new MeterModel();

            model.GetMetersForBuilding(buildingId);

            return(Json(model.Meters, JsonRequestBehavior.AllowGet));
        }
		public void CheckGetMetersForBuildingWithCorrectBuildingId_nullTest()
		{
			int correctBuildingid = 50;
			var meterModel = new MeterModel();

			meterModel.GetMetersForBuilding(correctBuildingid);

			Assert.IsNotNull(meterModel.Meters);
		}
		public void CheckGetMetersForBuildingWithCorrectBuildingId_typeTest()
		{
			int correctBuildingid = 100;
			var meterModel = new MeterModel();

			meterModel.GetMetersForBuilding(correctBuildingid);

			Assert.IsInstanceOfType(meterModel.Meters, typeof(List<Meter>));
		}