public void CheckDecorator_RiskStatus()
        {
            RiskStatus notStatus = RiskStatus.Open;

            IDecoratorSolution riskList = new DecoratorSolutionBase();

            riskList = new DiffrentStatesOfRiskDecorator(riskList, notStatus);

            var result = riskList.GetRisks().ToList();

            Assert.True(result.Count == 7);
            foreach (var i in result)
            {
                Assert.True(i.Status != RiskStatus.Open);
            }
        }
        public void CheckDecorator_WithoutTitle()
        {
            string     ownerName = "Person 5";
            RiskStatus notStatus = RiskStatus.Open;

            IDecoratorSolution riskList = new DecoratorSolutionBase();

            riskList = new ByOwnerNameDecorator(riskList, ownerName);
            riskList = new DiffrentStatesOfRiskDecorator(riskList, notStatus);


            var result = riskList.GetRisks().ToList();

            Assert.True(result.Count == 1);
            Assert.True(result[0].Owner.Name == ownerName);
            Assert.True(result[0].Status != RiskStatus.Open);
        }