public void RemoveRangeTest() { var roomtypes = _repository.GetAll(s => s.RoomTypeName == "Room Type E"); Assert.NotNull(roomtypes); _repository.RemoveRange(roomtypes); Assert.True(_context.SaveChangesAsync().Result); }
public void RemoveRangeTest() { var roomtypes = _repository.GetAll(s => s.RoomTypeName == "Room Type E"); Assert.NotNull(roomtypes); _repository.RemoveRange(roomtypes); Assert.True(_context.SaveChangesAsync().Result); }