public async Task GetUserProjectByIDAsync_ShouldReturnNull_WhenIdIsInvalid() { //arrange int id = 22; var projectDBContext = new ProjectDBContext(options); var projectRepoDB = new ProjectRepoDB(projectDBContext); //act var result = await projectRepoDB.GetUserProjectByIDAsync(id); //assert Assert.Null(result); }
public async Task GetUserProjectByIDAsync_ShouldReturnUserProject_WhenIdIsValid() { //arrange int id = 1; var projectDBContext = new ProjectDBContext(options); var projectRepoDB = new ProjectRepoDB(projectDBContext); //act var result = await projectRepoDB.GetUserProjectByIDAsync(id); //assert Assert.Equal(1, result.Id); }