Ejemplo n.º 1
0
        public void SetUp()
        {
            var fakeData = new FakeData();
            _tickets = fakeData.GetTickets();
            _developers = fakeData.GetDevelopers();

            _cost = new Cost(_developers, _tickets);
        }
Ejemplo n.º 2
0
        public void RandomOptimizeReturnsSolution()
        {
            var fakeData = new FakeData();
            var tickets = fakeData.GetTickets();
            var developers = fakeData.GetDevelopers();

            _ticketRepository.Setup(t => t.GetTickets()).Returns(tickets);
            _developerRepository.Setup(d => d.GetDevelopers()).Returns(developers);

            var randomOptimize = new RandomOptimize(_developerRepository.Object, _ticketRepository.Object);
            var solution = randomOptimize.GetSolution();
        }