private Models.Iteration MapData(Entities.Iteration iteration) { return(new Models.Iteration { Id = iteration.Id, Name = iteration.Name }); }
public WorkItemsControllerTests() { // Arrange mockWorkItemService = new Mock<IWorkItemService>(); mockMapper = new Mock<IMapper>(); sut = new WorkItemsController(mockWorkItemService.Object, mockMapper.Object); var iteration1 = new Entities.Iteration { Id = 1, Name = "Iteration1" }; var iteration2 = new Entities.Iteration { Id = 2, Name = "Iteration2" }; var iteration3 = new Entities.Iteration { Id = 3, Name = "Iteration3" }; workItems = new Entities.WorkItem[] { new Entities.WorkItem { Id = 1, Name = "Iteration1", ImageUrl = "Iteration1_ImageUrl", Iteration = iteration1 }, new Entities.WorkItem { Id = 2, Name = "Iteration2", ImageUrl = "Iteration2_ImageUrl", Iteration = iteration2 }, new Entities.WorkItem { Id = 3, Name = "Iteration3", ImageUrl = "Iteration3_ImageUrl", Iteration = iteration3 } }; }