public void Repository_Seat_deveria_deletar_um_assento() { //Arrange Seat newSeat = _repository.Add(_seat); //Action _repository.Delete(newSeat.Id); //Assert Seat result = _repository.GetById(newSeat.Id); result.Should().BeNull(); }
public void SeatDelete(int id) { var auths = auth_repo.GetMulti(d => (d.type == (int)eAuthType.UseSeat || d.type == (int)eAuthType.EditSeat || d.type == (int)eAuthType.UseSeatProp) && d.key1 == id); foreach (var auth in auths) { auth_repo.Remove(auth); } seat_repo.Delete(d => d.id == id); SubmitChanges(); }
public void Delete <E>(E id) { seatRepository.Delete(id); }
public void Delete(int seatId) { repository.Delete(seatId); repository.Save(); }