public PersonWorkMonth TimeManager_GetPersonWorkMonthWithoutData()
        {
            const int year = 2015;
            const int month = 11;

            var projects = new ProjectFactory().GetProjects();
            var products = new ProductFactory().GetProducts();
            var person = new PersonFactory().GetPersons(projects[0], products[0]);

            var personWorkMonth = new PersonWorkMonth
            {
                Person = person[0],
                Year = year,
                Month = month,
                PersonTasks = null,
                WorkDays = null
            };

            return personWorkMonth;
        }
        public PersonWorkMonth TimeManager_GetPersonWorkMonthWithData(int daysCount, int tasksCount)
        {
            var projects = new ProjectFactory().GetProjects();
            var products = new ProductFactory().GetProducts();
            var person = new PersonFactory().GetPersons(projects[0], products[0]);
            var workDaysFactory = new WorkDayFactory();
            var tasksFactory = new TaskFactory();

            var personWorkMonth = new PersonWorkMonth
            {
                Person = person[0],
                Year = Year,
                Month = Month,
                PersonTasks = tasksFactory.GetJiraTasks(tasksCount),
                WorkDays = workDaysFactory.GetWorkDays(Year, Month, daysCount)
            };

            var timeManager = new PersonTimeManager(new TimeSpan(8, 0, 0));
            personWorkMonth.PersonTasks = timeManager.GetPersonTasksWithTime(personWorkMonth.PersonTasks, personWorkMonth.WorkDays);

            return personWorkMonth;
        }
        public void TimeManager_GetPersonTasksWithTime_NullableInput_ResultShouldBeNull()
        {
            var projects = new ProjectFactory().GetProjects();
            var products = new ProductFactory().GetProducts();
            var person = new PersonFactory().GetPersons(projects[0], products[0]);

            var personWorkMonth = new PersonWorkMonth
            {
                Person = person[0],
                Year = Year,
                Month = Month,
                PersonTasks = null,
                WorkDays = null,
            };

            var timeManager = new PersonTimeManager(new TimeSpan(8, 0, 0));
            var result = timeManager.GetPersonTasksWithTime(personWorkMonth.PersonTasks, personWorkMonth.WorkDays);

            Assert.IsNull(result);
        }