Пример #1
0
        public void CalculateDriftingAtProjectionsObstructionsTest()
        {
            // Arrange
            SnowLoadsController controller = new SnowLoadsController();
            var buildingData = CreateBuildingData();
            var model        = CreateDriftingAtProjectionsObstructions(buildingData);

            // Act
            ViewResult result = controller.CalculateDriftingAtProjectionsObstructions(model, buildingData) as ViewResult;

            // Assert
            Assert.IsNotNull(result);
            Assert.AreEqual("DriftingAtProjectionsObstructionsResult", result.ViewName);
            Assert.IsTrue(result.Model.GetType() == typeof(SnowLoadDriftingAtProjectionsObstructions));
            Assert.AreNotEqual(0, model.DriftingAtProjectionsObstructions.SnowLoadOnRoofValue);
        }