public async Task AddSprintsAsync_ManageSpiritsServiceReturns_True() { //Arrange var sprint = new Sprint { Id = 1, TeamId = 1, Name = "Sprint1", DaysInSprint = 14, StoryPointInHours = 4, Status = PossibleStatuses.ActiveStatus }; _sprintRepository.Setup(x => x.InsertAsync(It.IsAny <Sprint>())).ReturnsAsync(true); //Act var result = await _manageSprintsService.AddSprintAsync(sprint); //Assert Assert.IsTrue(result); }
public async System.Threading.Tasks.Task AddSprintsAsync_ManageSpiritsServiceReturns_True() { //Arrange Team team = Team.Create(1, "1234", "1234", new List <TeamMember>()); var sprint = Sprint.Create(1, 1, team, "Sprint1", 14, 4, PossibleStatuses.ActiveStatus); _sprintRepository.Setup(x => x.InsertAsync(It.IsAny <Sprint>())).ReturnsAsync(true); //Act var result = await _manageSprintsService.AddSprintAsync(sprint); //Assert Assert.IsTrue(result); }