public void RemoveTest() { var roomtype = _repository.Get(s => s.RoomTypeName == "Room Type E"); Assert.NotNull(roomtype); _repository.Remove(roomtype); Assert.True(_context.SaveChangesAsync().Result); }
public void RemoveTest() { var roomtype = _repository.Get(s => s.RoomTypeName == "Room Type E"); Assert.NotNull(roomtype); _repository.Remove(roomtype); Assert.True(_context.SaveChangesAsync().Result); }