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();
        }
示例#2
0
        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();
        }
示例#3
0
 public void Delete <E>(E id)
 {
     seatRepository.Delete(id);
 }
示例#4
0
 public void Delete(int seatId)
 {
     repository.Delete(seatId);
     repository.Save();
 }