public async Task GetSavedProjectByIDAsync_ShouldReturnNull_WhenIDIsInvalid() { //arrange int id = 33; var projectDBContext = new ProjectDBContext(options); var projectrepoDB = new ProjectRepoDB(projectDBContext); //act var result = await projectrepoDB.GetSavedProjectByIDAsync(id); //assert Assert.Null(result); }
public async Task GetSavedProjectByIDAsync_ShouldReturnSavedProject_WhenIDIsValid() { //arrange int id = 1; var projectDBContext = new ProjectDBContext(options); var projectrepoDB = new ProjectRepoDB(projectDBContext); //act var result = await projectrepoDB.GetSavedProjectByIDAsync(id); //assert Assert.Equal("test1", result.ProjectName); }