public void given_round_exists_return_round() { //Arrange //Act var round = _repo.GetRound(1); //Assert Assert.IsNotNull(round); }
public void given_valid_id_then_round_read() { //Arrange var model = new RoundModel() { TeeTime = DateTime.Now.AddDays(-10) }; model = _repo.CreateOrUpdateRound(model); _idsToDelete.Add(model.Id); //Act var result = _repo.GetRound(model.Id); //Assert Assert.IsNotNull(result); Assert.IsInstanceOf <RoundModel>(result); Assert.AreEqual(model.Id, result.Id); Assert.AreEqual(model.TeeTime, result.TeeTime); }