public void SetPrice(int componentType, float newPrice)
 {
     if (!currentSession.UserLogged.HasPermission(Permission.MANAGE_COSTS))
     {
         throw new NoPermissionsException();
     }
     catalog.SetPrice(componentType, newPrice);
 }
Пример #2
0
        public void SetPriceTest()
        {
            float expectedResult = 120;

            prices.SetPrice((int)ComponentType.WALL, 120);
            float actualResult = prices.GetPrice((int)ComponentType.WALL);

            Assert.AreEqual(expectedResult, actualResult);
        }