public void Action_CombineInputData_OutputRightResult() { //Arrange Guid cpuGuid = new Guid(); Guid gpuGuid = new Guid(); Guid gameGuid = new Guid(); ResolutionDTO resolution = ResolutionDTO.res1080; GPUs.Setup(x => x.FindById(cpuGuid)).Returns(new GPU { AverageBench = 100 }); CPUs.Setup(x => x.FindById(gpuGuid)).Returns(new CPU { AverageBench = 100 }); Games.Setup(x => x.FindById(gameGuid)) .Returns(new Game { AverangeRequirements = 100 }); Games.Setup(x => x.Get()).Returns(new List <Game> { new Game { AverangeRequirements = 100 } }.AsQueryable()); //Act var result = buildService.Action(cpuGuid, gpuGuid, resolution); //Assert Assert.AreEqual(result.BuildGames[0].FPS, 120); }