public void NotFindRallyWhenItDoesNotExist() { var repo = new RallyRepository(); var result = repo.Find("2019"); Assert.True(result.IsFailure); }
public void AddRallyWhenItDoesNotExist() { var repo = new RallyRepository(); var result = repo.Add(new Rally(2019, _finishLineDistance)); Assert.True(result.IsSuccess); }
public void NotAddRallWhenItExists() { var repo = new RallyRepository(); repo.Add(new Rally(2019, _finishLineDistance)); var result = repo.Add(new Rally(2019, _finishLineDistance)); Assert.True(result.IsFailure); }
public void FindRallyWhenItExists() { var repo = new RallyRepository(); repo.Add(new Rally(2019, _finishLineDistance)); var result = repo.Find("2019"); Assert.True(result.IsSuccess); }