public void ValidateBudgetBudgetAccessRight_NullUserProfile_ThrowException()
        {
            var budgetAccessRight = new BudgetAccessRight
            {
                Budget = new Budget(),
                Permission = PermissionEnum.Read,
                UserProfile = null
            };

            var budgetAccessRightService = new BudgetAccessRightService(ProvidersFactory.GetNewBudgetsProviders());
            budgetAccessRightService.Validate(budgetAccessRight);
        }
        public void ValidateBudgetBudgetAccessRight_ValidBudgetAccessRight_ReturnsTrue()
        {
            var budgetAccessRight = new BudgetAccessRight
            {
                Budget = new Budget(),
                Permission = PermissionEnum.Read,
                UserProfile = new UserProfile()
            };

            var budgetAccessRightService = new BudgetAccessRightService(ProvidersFactory.GetNewBudgetsProviders());
            Assert.DoesNotThrow(() => budgetAccessRightService.Validate(budgetAccessRight));
        }
 public void ValidateBudgetBudgetAccessRight_NullBudgetAccessRight_ThrowException(
     BudgetAccessRight budgetAccessRight)
 {
     var budgetAccessRightService = new BudgetAccessRightService(ProvidersFactory.GetNewBudgetsProviders());
     budgetAccessRightService.Validate(budgetAccessRight);
 }